Add string resource for night mode pref (#105)

This commit is contained in:
BlackyHawky 2023-08-28 21:01:06 +02:00 committed by GitHub
parent 9713c4a25a
commit 15dc59539a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View file

@ -248,7 +248,6 @@ class AppearanceSettingsFragment : SubScreenFragment(), Preference.OnPreferenceC
} }
customThemeVariantNightPref = preferenceScreen.findPreference(Settings.PREF_CUSTOM_THEME_VARIANT_NIGHT) as ListPreference customThemeVariantNightPref = preferenceScreen.findPreference(Settings.PREF_CUSTOM_THEME_VARIANT_NIGHT) as ListPreference
customThemeVariantNightPref.apply { customThemeVariantNightPref.apply {
title = "$title (night)" // todo: string resource
onPreferenceChangeListener = Preference.OnPreferenceChangeListener { _, value -> onPreferenceChangeListener = Preference.OnPreferenceChangeListener { _, value ->
// not so nice workaround, could be removed in the necessary re-work: new value seems // not so nice workaround, could be removed in the necessary re-work: new value seems
// to be stored only after this method call, but we update the summary and user-defined color enablement in here -> store it now // to be stored only after this method call, but we update the summary and user-defined color enablement in here -> store it now

View file

@ -615,6 +615,8 @@ disposition rather than other common dispositions for Latin languages. [CHAR LIM
<string name="theme_family">Theme family</string> <string name="theme_family">Theme family</string>
<!-- Option for choosing theme family variant [CHAR LIMIT=33] --> <!-- Option for choosing theme family variant [CHAR LIMIT=33] -->
<string name="theme_variant">Theme variant</string> <string name="theme_variant">Theme variant</string>
<!-- Option for choosing theme family variant (night) [CHAR LIMIT=33] -->
<string name="theme_variant_night">Theme variant (night mode)</string>
<!-- Option for choosing whether we use a theme that provides borders to keys [CHAR LIMIT=33] --> <!-- Option for choosing whether we use a theme that provides borders to keys [CHAR LIMIT=33] -->
<string name="key_borders">Key borders</string> <string name="key_borders">Key borders</string>
<!-- Option for choosing auto day/night theme switch [CHAR LIMIT=33] --> <!-- Option for choosing auto day/night theme switch [CHAR LIMIT=33] -->

View file

@ -42,7 +42,7 @@
<ListPreference <ListPreference
android:key="custom_theme_variant_night" android:key="custom_theme_variant_night"
android:title="@string/theme_variant"/> android:title="@string/theme_variant_night"/>
<Preference <Preference
android:key="theme_select_colors" android:key="theme_select_colors"