Skip to content

Commit dcb9f8b

Browse files
nopdanWhiredPlanck
authored andcommitted
fix: determine whether to follow the system's night mode switching color scheme
1 parent 18df034 commit dcb9f8b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/java/com/osfans/trime/data/theme/ColorManager.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ object ColorManager {
100100
}
101101

102102
fun onSystemNightModeChange(isNight: Boolean) {
103+
if (!prefs.autoDark) return
103104
if (isNightMode == isNight) return
104105
isNightMode = isNight
105106
switchNightMode(isNightMode)

0 commit comments

Comments
 (0)