Adjustment in pref_settings_general

Creating the two switches for "automatic by system" and "automatic by battery"
This commit is contained in:
ErikWaegerle 2020-06-24 20:44:47 +02:00
parent 01865b1741
commit eb78716249
2 changed files with 15 additions and 0 deletions

View file

@ -57,6 +57,8 @@
<string name="pref_timer_reset_summary">Also reset the timer, when resetting the game board.</string>
<string name="pref_dark_mode">Dark Theme</string>
<string name="pref_group_dark_theme">Dark Theme settings</string>
<string name="pref_dark_mode_automatically_by_system">Automatically by system </string>
<string name="pref_dark_mode_automatically_by_battery">Automatically by battery </string>
<string name="pref_dark_mode_setting">Dark Theme</string>
<string name="pref_dark_mode_summary">switch between light and dark theme</string>

View file

@ -35,6 +35,19 @@
android:title="@string/pref_dark_mode"
android:summary="@string/pref_dark_mode_summary"
android:defaultValue="true"/>
<SwitchPreference android:id="@+id/pref_dark_theme_automatically_by_system"
android:key="pref_dark_mode_automatically_by_system"
android:title="@string/pref_dark_mode_automatically_by_system"
android:summary="Dark theme is adapted to settings of the OS"
android:defaultValue="true"/>
<SwitchPreference android:id="@+id/pref_dark_theme_automatically_by_battery"
android:key="pref_dark_mode_automatically_by_battery"
android:title="@string/pref_dark_mode_automatically_by_battery"
android:summary="adjusts Dark theme automatically according to battery status "
android:defaultValue="true"/>
</PreferenceCategory>
<PreferenceCategory android:title="@string/pref_group_highlight_selection">