diff --git a/qt/aqt/theme.py b/qt/aqt/theme.py index fc390bf51..6f2e0b2ae 100644 --- a/qt/aqt/theme.py +++ b/qt/aqt/theme.py @@ -32,6 +32,7 @@ class ThemeManager: def set_night_mode(self, val: bool) -> None: self._night_mode_preference = val + self._update_stat_colors() night_mode = property(get_night_mode, set_night_mode) @@ -194,5 +195,13 @@ QTabWidget { background-color: %s; } app.setPalette(palette) + def _update_stat_colors(self): + import anki.stats as s + s.colLearn = self.str_color("new-count") + s.colRelearn = self.str_color("learn-count") + s.colCram = self.str_color("suspended-bg") + s.colSusp = self.str_color("suspended-bg") + s.colMature = self.str_color("review-count") + theme_manager = ThemeManager() diff --git a/qt/ts/scss/_vars.scss b/qt/ts/scss/_vars.scss index 7f31f2814..0ff5ab438 100644 --- a/qt/ts/scss/_vars.scss +++ b/qt/ts/scss/_vars.scss @@ -25,7 +25,7 @@ $night-frame-bg: #3a3a3a; $night-border: #777; $night-faint-border: #29292B; $night-link: #77ccff; -$night-review-count: #7CFC00; +$night-review-count: #5CcC00; $night-new-count: #77ccff; $night-learn-count: #FF935B; $night-zero-count: #777;