Extension of pref_settings_general.xml with a switch. This is used to activate/deactivate the dark theme.

Adaptation to German and English language
This commit is contained in:
ErikWaegerle 2020-06-24 16:33:44 +02:00
parent c115b6c990
commit 650bd797ba
3 changed files with 14 additions and 0 deletions

View file

@ -10,6 +10,9 @@
<!-- Strings related to Settings --> <!-- Strings related to Settings -->
<string name="title_activity_settings">Einstellungen</string> <string name="title_activity_settings">Einstellungen</string>
<string name="pref_dark_mode">Nachtmodus</string>
<string name="pref_dark_mode_setting">Nachtmodus</string>
<string name="pref_dark_mode_summary">Wechsel zwischen Tages und Nacht Modus</string>
<!-- About Page --> <!-- About Page -->
<string name="about_affiliation">In Zusammenarbeit mit:</string> <string name="about_affiliation">In Zusammenarbeit mit:</string>

View file

@ -30,6 +30,7 @@
<string name="pref_group_highlight_value">Value highlight</string> <string name="pref_group_highlight_value">Value highlight</string>
<string name="pref_highlight_vals">Same values</string> <string name="pref_highlight_vals">Same values</string>
<string name="pref_highlight_notes">Notes</string> <string name="pref_highlight_notes">Notes</string>
<!-- #Game --> <!-- #Game -->
<string name="pref_header_game">Game</string> <string name="pref_header_game">Game</string>
<string name="pref_group_game">Game settings</string> <string name="pref_group_game">Game settings</string>
@ -54,6 +55,10 @@
<string name="pref_automatic_note_deletion_summary">Automatically remove notes when setting values on connected cells</string> <string name="pref_automatic_note_deletion_summary">Automatically remove notes when setting values on connected cells</string>
<string name="pref_timer_reset">Timer Reset</string> <string name="pref_timer_reset">Timer Reset</string>
<string name="pref_timer_reset_summary">Also reset the timer, when resetting the game board.</string> <string name="pref_timer_reset_summary">Also reset the timer, when resetting the game board.</string>
<string name="pref_dark_mode">Dark Mode</string>
<string name="pref_dark_mode_setting">Dark Theme</string>
<string name="pref_dark_mode_summary">switch between light and dark theme</string>
<!-- ###ABOUT### --> <!-- ###ABOUT### -->
<string name="app_name_long" translatable="false">Privacy Friendly Sudoku</string> <string name="app_name_long" translatable="false">Privacy Friendly Sudoku</string>

View file

@ -19,6 +19,12 @@
android:summary="@string/pref_keep_screen_on_summary" android:summary="@string/pref_keep_screen_on_summary"
android:defaultValue="true"/> android:defaultValue="true"/>
<SwitchPreference android:id="@+id/pref_dark_theme"
android:key="pref_dark_mode_setting"
android:title="@string/pref_dark_mode"
android:summary="@string/pref_dark_mode_summary"
android:defaultValue="true"/>
<ListPreference <ListPreference
android:key="pref_symbols" android:key="pref_symbols"
android:title="@string/pref_symbols" android:title="@string/pref_symbols"