mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix(theme): Accidentally pushed this change
This commit is contained in:
parent
3202d8cdde
commit
9c29758a5d
1 changed files with 3 additions and 5 deletions
|
@ -68,11 +68,9 @@ object ThemeUtil {
|
|||
|
||||
fun AppCompatActivity.setThemeByPref(preferences: PreferencesHelper) {
|
||||
setTheme(getPrefTheme(preferences).styleRes)
|
||||
if (preferences.nightMode().get() != AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM) {
|
||||
val wic = WindowInsetsControllerCompat(window, window.decorView)
|
||||
wic.isAppearanceLightStatusBars = !isDarkMode(preferences)
|
||||
wic.isAppearanceLightNavigationBars = !isDarkMode(preferences)
|
||||
}
|
||||
val wic = WindowInsetsControllerCompat(window, window.decorView)
|
||||
wic.isAppearanceLightStatusBars = !isDarkMode(preferences)
|
||||
wic.isAppearanceLightNavigationBars = !isDarkMode(preferences)
|
||||
}
|
||||
|
||||
fun AppCompatActivity.getThemeWithExtras(theme: Resources.Theme, preferences: PreferencesHelper, oldTheme: Resources.Theme?): Resources.Theme {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue