mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix dark mode not automatically switching
This commit is contained in:
parent
0d7d6b816e
commit
5865dde3d7
@ -23,7 +23,7 @@ val DynamicSystemTheme = ThemeOption(
|
||||
when (uiModeManager.nightMode) {
|
||||
UiModeManager.MODE_NIGHT_YES -> dynamicDarkColorScheme(it)
|
||||
UiModeManager.MODE_NIGHT_NO -> dynamicLightColorScheme(it)
|
||||
UiModeManager.MODE_NIGHT_AUTO -> {
|
||||
else -> {
|
||||
val currentNightMode = it.resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK
|
||||
if(currentNightMode == Configuration.UI_MODE_NIGHT_NO) {
|
||||
dynamicLightColorScheme(it)
|
||||
@ -31,7 +31,6 @@ val DynamicSystemTheme = ThemeOption(
|
||||
dynamicDarkColorScheme(it)
|
||||
}
|
||||
}
|
||||
else -> dynamicDarkColorScheme(it)
|
||||
}
|
||||
}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user