fix(about): correct the version display
Drop the v prefix so the version shows as a plain version name, and align it by baseline with the app name instead of the bottom edge of the headline line box.
This commit is contained in:
1 parent
84fcd77f02
commit
37127b7bc9
3 files changed
+4
-5
No files matched your search
@@ -156,13 +156,14 @@ private fun AboutHeader(versionName: String) {
|
||||
Text(
|
||||
text = stringResource(R.string.app_name),
|
||||
style = MaterialTheme.typography.headlineMedium,
|
||||
color = MaterialTheme.colorScheme.onSurface
|
||||
color = MaterialTheme.colorScheme.onSurface,
|
||||
modifier = Modifier.alignByBaseline()
|
||||
)
|
||||
Text(
|
||||
text = stringResource(R.string.version_format, versionName),
|
||||
text = versionName,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
modifier = Modifier.padding(bottom = 2.dp)
|
||||
modifier = Modifier.alignByBaseline()
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
<string name="app_name">ReSearch</string>
|
||||
<string name="settings_title">Настройки</string>
|
||||
<string name="action_back">Назад</string>
|
||||
<string name="version_format">v%1$s</string>
|
||||
<string name="version_unknown">неизвестно</string>
|
||||
<string name="button_cancel_download">Отмена</string>
|
||||
<string name="action_ok">ОК</string>
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
<string name="app_name">ReSearch</string>
|
||||
<string name="settings_title">Settings</string>
|
||||
<string name="action_back">Back</string>
|
||||
<string name="version_format">v%1$s</string>
|
||||
<string name="version_unknown">unknown</string>
|
||||
<string name="button_cancel_download">Cancel</string>
|
||||
<string name="action_ok">OK</string>
|
||||
|
||||
Reference in new issue
Block a user