Skip to content

Commit

Permalink
Make "auto" the default theme choice.
Browse files Browse the repository at this point in the history
  • Loading branch information
caarmen committed Jan 4, 2025
1 parent 25d7fac commit e2fd203
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class SettingsPrefs(application: Application) {

var theme: String
get() {
return sharedPreferences.getString(PREF_THEME, THEME_LIGHT) ?: THEME_LIGHT
return sharedPreferences.getString(PREF_THEME, THEME_LIGHT) ?: THEME_AUTO
}
set(newValue) {
sharedPreferences.edit().putString(PREF_THEME, newValue).apply()
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/xml/pref_general.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
android:title="@string/pref_category_ui">

<ListPreference
android:defaultValue="Light"
android:defaultValue="Auto"
android:entries="@array/pref_theme_titles"
android:entryValues="@array/pref_theme_values"
android:icon="@drawable/ic_settings_theme"
Expand Down

0 comments on commit e2fd203

Please sign in to comment.