setting isDarkTheme in themes to a true val

This commit is contained in:
Jays2Kings 2021-07-10 14:50:28 -04:00
parent 0ebdbe174f
commit 70fc7c3b3b

View File

@ -64,8 +64,7 @@ enum class Themes(@StyleRes val styleRes: Int, val nightMode: Int, @StringRes va
R.string.dark_blue
);
val isDarkTheme: Boolean
get() = nightMode == AppCompatDelegate.MODE_NIGHT_YES
val isDarkTheme = nightMode == AppCompatDelegate.MODE_NIGHT_YES
fun getColors(mode: Int = AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM): Colors {
return when (nightMode) {