Skip to content

Commit a2c4a56

Browse files
Update tagstudio/src/qt/theme.py
Co-authored-by: yed <yedpodtrzitko@users.noreply.github.com>
1 parent 64b6c5b commit a2c4a56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tagstudio/src/qt/theme.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ def update_palette() -> None:
132132
true_values = ("1", "yes", "true", "on")
133133
false_values = ("0", "no", "false", "off")
134134

135-
if dark_mode_value.lower() in ("1", "yes", "true", "on"):
135+
if dark_mode_value.lower() in true_values:
136136
dark_mode = True
137-
elif dark_mode_value.lower() in ("0", "no", "false", "off"):
137+
elif dark_mode_value.lower() in false_values:
138138
dark_mode = False
139139
elif dark_mode_value == "-1":
140140
dark_mode = -1

0 commit comments

Comments
 (0)