Adjustment in pref_settings_general
Creating the two switches for "automatic by system" and "automatic by battery"
This commit is contained in:
parent
01865b1741
commit
eb78716249
2 changed files with 15 additions and 0 deletions
|
@ -57,6 +57,8 @@
|
||||||
<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 Theme</string>
|
<string name="pref_dark_mode">Dark Theme</string>
|
||||||
<string name="pref_group_dark_theme">Dark Theme settings</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_setting">Dark Theme</string>
|
||||||
<string name="pref_dark_mode_summary">switch between light and dark theme</string>
|
<string name="pref_dark_mode_summary">switch between light and dark theme</string>
|
||||||
|
|
|
@ -35,6 +35,19 @@
|
||||||
android:title="@string/pref_dark_mode"
|
android:title="@string/pref_dark_mode"
|
||||||
android:summary="@string/pref_dark_mode_summary"
|
android:summary="@string/pref_dark_mode_summary"
|
||||||
android:defaultValue="true"/>
|
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>
|
||||||
|
|
||||||
<PreferenceCategory android:title="@string/pref_group_highlight_selection">
|
<PreferenceCategory android:title="@string/pref_group_highlight_selection">
|
||||||
|
|
Loading…
Reference in a new issue