From 8b68512e0e8e4919864f7f4b7d3c7e537d6541e5 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 31 Jan 2020 13:39:52 +1000 Subject: [PATCH] when dark mode not active, match fusion buttons --- qt/aqt/theme.py | 2 ++ qt/ts/scss/_buttons.scss | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/qt/aqt/theme.py b/qt/aqt/theme.py index 360a79844..96e7646af 100644 --- a/qt/aqt/theme.py +++ b/qt/aqt/theme.py @@ -63,6 +63,8 @@ class ThemeManager: classes.append("isLin") if self.night_mode: classes.extend(["nightMode", "night_mode"]) + if self.macos_dark_mode(): + classes.append("macos-dark-mode") return " ".join(classes) def body_classes_for_card_ord(self, card_ord: int) -> str: diff --git a/qt/ts/scss/_buttons.scss b/qt/ts/scss/_buttons.scss index 0923c660e..356e88a6b 100644 --- a/qt/ts/scss/_buttons.scss +++ b/qt/ts/scss/_buttons.scss @@ -45,7 +45,7 @@ } /* imitate standard macOS dark mode buttons */ -.isMac.nightMode button:not(.linkb) { +.isMac.nightMode.macos-dark-mode button:not(.linkb) { background: #656565; box-shadow: 0 1px 2px #222222; border-top-color: #848484;