diff --git a/qt/aqt/webview.py b/qt/aqt/webview.py index a095c9c41..4b324d14b 100644 --- a/qt/aqt/webview.py +++ b/qt/aqt/webview.py @@ -247,6 +247,8 @@ class AnkiWebView(QWebEngineView): # type: ignore return 3 def _getWindowColor(self): + if theme_manager.night_mode: + return theme_manager.qcolor("window-bg") if isMac: # standard palette does not return correct window color on macOS return QColor("#ececec") @@ -317,7 +319,7 @@ div[contenteditable="true"]:focus {