android: Icons (#1100)
* Icons * Icons in app's info * Icon foreground Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
@@ -12,6 +12,7 @@ import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.MutableState
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.graphics.painter.Painter
|
||||
import androidx.compose.ui.res.painterResource
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
@@ -44,9 +45,9 @@ fun SimpleXInfoLayout(
|
||||
|
||||
Text(stringResource(R.string.next_generation_of_private_messaging), style = MaterialTheme.typography.h2, modifier = Modifier.padding(bottom = 16.dp))
|
||||
|
||||
InfoRow("🎭", R.string.privacy_redefined, R.string.first_platform_without_user_ids)
|
||||
InfoRow("📭", R.string.immune_to_spam_and_abuse, R.string.people_can_connect_only_via_links_you_share)
|
||||
InfoRow("🤝", R.string.decentralized, R.string.opensource_protocol_and_code_anybody_can_run_servers)
|
||||
InfoRow(painterResource(R.drawable.privacy), R.string.privacy_redefined, R.string.first_platform_without_user_ids)
|
||||
InfoRow(painterResource(R.drawable.shield), R.string.immune_to_spam_and_abuse, R.string.people_can_connect_only_via_links_you_share)
|
||||
InfoRow(painterResource(R.drawable.decentralized), R.string.decentralized, R.string.opensource_protocol_and_code_anybody_can_run_servers)
|
||||
|
||||
Spacer(
|
||||
Modifier
|
||||
@@ -85,11 +86,11 @@ fun SimpleXLogo() {
|
||||
}
|
||||
|
||||
@Composable
|
||||
private fun InfoRow(emoji: String, @StringRes titleId: Int, @StringRes textId: Int) {
|
||||
private fun InfoRow(icon: Painter, @StringRes titleId: Int, @StringRes textId: Int) {
|
||||
Row(Modifier.padding(bottom = 20.dp), verticalAlignment = Alignment.Top) {
|
||||
Text(emoji, fontSize = 36.sp, modifier = Modifier
|
||||
Image(icon, contentDescription = null, modifier = Modifier
|
||||
.width(60.dp)
|
||||
.padding(end = 16.dp))
|
||||
.padding(top = 8.dp, end = 16.dp))
|
||||
Column(horizontalAlignment = Alignment.Start) {
|
||||
Text(stringResource(titleId), fontWeight = FontWeight.Bold, style = MaterialTheme.typography.h3, lineHeight = 24.sp)
|
||||
Text(stringResource(textId), lineHeight = 24.sp, style = MaterialTheme.typography.caption)
|
||||
|
||||
BIN
apps/android/app/src/main/res/drawable-hdpi/decentralized.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
apps/android/app/src/main/res/drawable-hdpi/privacy.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
apps/android/app/src/main/res/drawable-hdpi/shield.png
Normal file
|
After Width: | Height: | Size: 8.2 KiB |
BIN
apps/android/app/src/main/res/drawable-mdpi/decentralized.png
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
apps/android/app/src/main/res/drawable-mdpi/privacy.png
Normal file
|
After Width: | Height: | Size: 5.9 KiB |
BIN
apps/android/app/src/main/res/drawable-mdpi/shield.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
apps/android/app/src/main/res/drawable-xhdpi/decentralized.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
apps/android/app/src/main/res/drawable-xhdpi/privacy.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
apps/android/app/src/main/res/drawable-xhdpi/shield.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
apps/android/app/src/main/res/drawable-xxhdpi/decentralized.png
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
apps/android/app/src/main/res/drawable-xxhdpi/privacy.png
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
apps/android/app/src/main/res/drawable-xxhdpi/shield.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
apps/android/app/src/main/res/drawable-xxxhdpi/decentralized.png
Normal file
|
After Width: | Height: | Size: 77 KiB |
BIN
apps/android/app/src/main/res/drawable-xxxhdpi/privacy.png
Normal file
|
After Width: | Height: | Size: 84 KiB |
BIN
apps/android/app/src/main/res/drawable-xxxhdpi/shield.png
Normal file
|
After Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 8.2 KiB |
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 9.2 KiB |
|
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 16 KiB |