strings
This commit is contained in:
parent
6215dfdfc5
commit
304d95f101
@ -20,9 +20,7 @@ import androidx.compose.material.icons.rounded.ErrorOutline
|
|||||||
import androidx.compose.material.icons.rounded.LightMode
|
import androidx.compose.material.icons.rounded.LightMode
|
||||||
import androidx.compose.material.icons.rounded.MoreVert
|
import androidx.compose.material.icons.rounded.MoreVert
|
||||||
import androidx.compose.material.icons.rounded.Palette
|
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.Star
|
||||||
import androidx.compose.material.icons.rounded.Upgrade
|
|
||||||
import androidx.compose.material3.Button
|
import androidx.compose.material3.Button
|
||||||
import androidx.compose.material3.FilledTonalIconButton
|
import androidx.compose.material3.FilledTonalIconButton
|
||||||
import androidx.compose.material3.FilterChip
|
import androidx.compose.material3.FilterChip
|
||||||
@ -127,7 +125,7 @@ fun ImportThemeSettingsScreen(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
item {
|
item {
|
||||||
PreferenceCategory {
|
PreferenceCategory(stringResource(R.string.import_theme_contents)) {
|
||||||
if (themeBundle.colors != null) {
|
if (themeBundle.colors != null) {
|
||||||
Preference(
|
Preference(
|
||||||
icon = Icons.Rounded.Palette,
|
icon = Icons.Rounded.Palette,
|
||||||
@ -135,7 +133,10 @@ fun ImportThemeSettingsScreen(
|
|||||||
summary = themeBundle.colors?.name,
|
summary = themeBundle.colors?.name,
|
||||||
controls = if (viewModel.colorsExists) {
|
controls = if (viewModel.colorsExists) {
|
||||||
{
|
{
|
||||||
Icon(Icons.Rounded.ChangeCircle, null)
|
Icon(
|
||||||
|
Icons.Rounded.ChangeCircle,
|
||||||
|
stringResource(R.string.import_theme_exists)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
} else null,
|
} else null,
|
||||||
)
|
)
|
||||||
@ -147,7 +148,10 @@ fun ImportThemeSettingsScreen(
|
|||||||
summary = themeBundle.shapes?.name,
|
summary = themeBundle.shapes?.name,
|
||||||
controls = if (viewModel.shapesExists) {
|
controls = if (viewModel.shapesExists) {
|
||||||
{
|
{
|
||||||
Icon(Icons.Rounded.ChangeCircle, null)
|
Icon(
|
||||||
|
Icons.Rounded.ChangeCircle,
|
||||||
|
stringResource(R.string.import_theme_exists)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
} else null,
|
} else null,
|
||||||
)
|
)
|
||||||
|
|||||||
@ -827,6 +827,7 @@
|
|||||||
<string name="theme_color_scheme_palette_color">Palette</string>
|
<string name="theme_color_scheme_palette_color">Palette</string>
|
||||||
<string name="theme_color_scheme_custom_color">Custom</string>
|
<string name="theme_color_scheme_custom_color">Custom</string>
|
||||||
<string name="preference_restore_default">Restore default</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_apply">Apply theme</string>
|
||||||
<string name="import_theme_exists">Theme already exists and will be updated</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>
|
<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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user