mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-18 16:03:12 +00:00
Add string resource for night mode pref (#105)
This commit is contained in:
parent
9713c4a25a
commit
15dc59539a
3 changed files with 3 additions and 2 deletions
|
@ -248,7 +248,6 @@ class AppearanceSettingsFragment : SubScreenFragment(), Preference.OnPreferenceC
|
|||
}
|
||||
customThemeVariantNightPref = preferenceScreen.findPreference(Settings.PREF_CUSTOM_THEME_VARIANT_NIGHT) as ListPreference
|
||||
customThemeVariantNightPref.apply {
|
||||
title = "$title (night)" // todo: string resource
|
||||
onPreferenceChangeListener = Preference.OnPreferenceChangeListener { _, value ->
|
||||
// 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
|
||||
|
|
|
@ -615,6 +615,8 @@ disposition rather than other common dispositions for Latin languages. [CHAR LIM
|
|||
<string name="theme_family">Theme family</string>
|
||||
<!-- Option for choosing theme family variant [CHAR LIMIT=33] -->
|
||||
<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] -->
|
||||
<string name="key_borders">Key borders</string>
|
||||
<!-- Option for choosing auto day/night theme switch [CHAR LIMIT=33] -->
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
|
||||
<ListPreference
|
||||
android:key="custom_theme_variant_night"
|
||||
android:title="@string/theme_variant"/>
|
||||
android:title="@string/theme_variant_night"/>
|
||||
|
||||
<Preference
|
||||
android:key="theme_select_colors"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue