This commit is contained in:
MM20 2025-06-07 14:20:01 +02:00
parent 6215dfdfc5
commit 304d95f101
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389
2 changed files with 10 additions and 5 deletions

View File

@ -20,9 +20,7 @@ import androidx.compose.material.icons.rounded.ErrorOutline
import androidx.compose.material.icons.rounded.LightMode
import androidx.compose.material.icons.rounded.MoreVert
import androidx.compose.material.icons.rounded.Palette
import androidx.compose.material.icons.rounded.PublishedWithChanges
import androidx.compose.material.icons.rounded.Star
import androidx.compose.material.icons.rounded.Upgrade
import androidx.compose.material3.Button
import androidx.compose.material3.FilledTonalIconButton
import androidx.compose.material3.FilterChip
@ -127,7 +125,7 @@ fun ImportThemeSettingsScreen(
}
}
item {
PreferenceCategory {
PreferenceCategory(stringResource(R.string.import_theme_contents)) {
if (themeBundle.colors != null) {
Preference(
icon = Icons.Rounded.Palette,
@ -135,7 +133,10 @@ fun ImportThemeSettingsScreen(
summary = themeBundle.colors?.name,
controls = if (viewModel.colorsExists) {
{
Icon(Icons.Rounded.ChangeCircle, null)
Icon(
Icons.Rounded.ChangeCircle,
stringResource(R.string.import_theme_exists)
)
}
} else null,
)
@ -147,7 +148,10 @@ fun ImportThemeSettingsScreen(
summary = themeBundle.shapes?.name,
controls = if (viewModel.shapesExists) {
{
Icon(Icons.Rounded.ChangeCircle, null)
Icon(
Icons.Rounded.ChangeCircle,
stringResource(R.string.import_theme_exists)
)
}
} else null,
)

View File

@ -827,6 +827,7 @@
<string name="theme_color_scheme_palette_color">Palette</string>
<string name="theme_color_scheme_custom_color">Custom</string>
<string name="preference_restore_default">Restore default</string>
<string name="import_theme_contents">Contents</string>
<string name="import_theme_apply">Apply theme</string>
<string name="import_theme_exists">Theme already exists and will be updated</string>
<string name="import_theme_error">The selected file could not be read. Please make sure that you selected a valid theme file (*.kvtheme), and that the file is not corrupt.</string>