From edcadb7dd117431f395649ce9cec939fd2d839e4 Mon Sep 17 00:00:00 2001 From: Simon M Date: Thu, 20 Feb 2020 00:34:21 +0100 Subject: [PATCH] Change default theme to System Default (#2608) * Change default theme to System Default Hopefully this was the only string that dictated the default setting. * Update PreferencesHelper.kt --- .../eu/kanade/tachiyomi/data/preference/PreferencesHelper.kt | 2 +- .../eu/kanade/tachiyomi/ui/setting/SettingsGeneralController.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferencesHelper.kt b/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferencesHelper.kt index a875f9601..22a4a6b66 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferencesHelper.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferencesHelper.kt @@ -54,7 +54,7 @@ class PreferencesHelper(val context: Context) { fun clear() = prefs.edit().clear().apply() - fun themeMode() = rxPrefs.getString(Keys.themeMode, Values.THEME_MODE_LIGHT) + fun themeMode() = rxPrefs.getString(Keys.themeMode, Values.THEME_MODE_SYSTEM) fun themeDark() = prefs.getString(Keys.themeDark, Values.THEME_DARK_DEFAULT) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralController.kt index d7427711c..b99fb2a01 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralController.kt @@ -71,7 +71,7 @@ class SettingsGeneralController : SettingsController() { Values.THEME_MODE_LIGHT, Values.THEME_MODE_DARK) } - defaultValue = Values.THEME_MODE_LIGHT + defaultValue = Values.THEME_MODE_SYSTEM summary = "%s" onChange {