Skip to content

Commit

Permalink
Convert dark theme options array to string resources + remove auto ba…
Browse files Browse the repository at this point in the history
…ttery
  • Loading branch information
EdricChan03 committed Dec 1, 2024
1 parent 78b7d4e commit b567230
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
12 changes: 3 additions & 9 deletions features/settings/src/main/res/values/compat_arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,12 @@
</string-array>

<string-array name="pref_dark_theme_options_array">
<item>Always</item>
<!-- No longer supported -->
<!-- <item>Automatic (at night)</item> -->
<item>Automatic (battery saver)</item>
<item>Follow system</item>
<item>Never</item>
<item>@string/pref_dark_theme_entry_always</item>
<item>@string/pref_dark_theme_entry_system</item>
<item>@string/pref_dark_theme_entry_never</item>
</string-array>
<string-array name="pref_dark_theme_options_array_values" translatable="false">
<item>always</item>
<!-- No longer supported -->
<!-- <item>automatic_time</item> -->
<item>automatic_battery_saver</item>
<item>follow_system</item>
<item>never</item>
</string-array>
Expand Down
4 changes: 4 additions & 0 deletions features/settings/src/main/res/values/compat_strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@

<string name="pref_dark_theme_title">Dark theme</string>

<string name="pref_dark_theme_entry_always">Always</string>
<string name="pref_dark_theme_entry_system">Follow system</string>
<string name="pref_dark_theme_entry_never">Never</string>

<string name="pref_dynamic_theme_title">Dynamic theme</string>
<string name="pref_dynamic_theme_summary">Whether to use your phone\'s theme. (Android 12+)
</string>
Expand Down

0 comments on commit b567230

Please sign in to comment.