Rename string resources

This commit is contained in:
MM20
2023-08-27 00:09:12 +02:00
parent e4f5ec4625
commit 808a63813c
3 changed files with 8 additions and 10 deletions
@@ -3,7 +3,6 @@ package de.mm20.launcher2.ui.settings.colorscheme
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.expandVertically
import androidx.compose.animation.shrinkVertically
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
@@ -70,7 +69,7 @@ fun CorePaletteColorPreference(
) {
SwitchPreference(
icon = Icons.Rounded.SettingsSuggest,
title = stringResource(R.string.custom_color_scheme_system_default),
title = stringResource(R.string.theme_color_scheme_system_default),
value = currentValue == null,
onValueChanged = {
currentValue = if (it) null else defaultValue
@@ -126,7 +125,7 @@ fun CorePaletteColorPreference(
.padding(ButtonDefaults.IconSpacing)
.size(ButtonDefaults.IconSize)
)
Text(stringResource(R.string.custom_color_scheme_autogenerate))
Text(stringResource(R.string.theme_color_scheme_autogenerate))
}
}
}
@@ -3,7 +3,6 @@ package de.mm20.launcher2.ui.settings.colorscheme
import androidx.compose.animation.AnimatedContent
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
@@ -121,7 +120,7 @@ fun ThemeColorPreference(
},
shape = SegmentedButtonDefaults.shape(position = 0, count = 2)
) {
Text(stringResource(R.string.custom_color_scheme_palette_color))
Text(stringResource(R.string.theme_color_scheme_palette_color))
}
SegmentedButton(
selected = actualValue is StaticColor,
@@ -142,7 +141,7 @@ fun ThemeColorPreference(
},
shape = SegmentedButtonDefaults.shape(position = 1, count = 2)
) {
Text(stringResource(R.string.custom_color_scheme_custom_color))
Text(stringResource(R.string.theme_color_scheme_custom_color))
}
}
AnimatedContent(