mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 04:59:17 +01:00
setting isDarkTheme in themes to a true val
This commit is contained in:
parent
0ebdbe174f
commit
70fc7c3b3b
@ -64,8 +64,7 @@ enum class Themes(@StyleRes val styleRes: Int, val nightMode: Int, @StringRes va
|
|||||||
R.string.dark_blue
|
R.string.dark_blue
|
||||||
);
|
);
|
||||||
|
|
||||||
val isDarkTheme: Boolean
|
val isDarkTheme = nightMode == AppCompatDelegate.MODE_NIGHT_YES
|
||||||
get() = nightMode == AppCompatDelegate.MODE_NIGHT_YES
|
|
||||||
|
|
||||||
fun getColors(mode: Int = AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM): Colors {
|
fun getColors(mode: Int = AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM): Colors {
|
||||||
return when (nightMode) {
|
return when (nightMode) {
|
||||||
|
Loading…
Reference in New Issue
Block a user