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;