diff --git a/qt/aqt/webview.py b/qt/aqt/webview.py index b81b24315..5f9dfaf3a 100644 --- a/qt/aqt/webview.py +++ b/qt/aqt/webview.py @@ -411,6 +411,7 @@ div[contenteditable="true"]:focus { body {{ zoom: {zoom}; background: {background}; direction: {lang_dir}; {font} }} {button_style} :root {{ --window-bg: {background} }} +:root[class*=night-mode] {{ --window-bg: {background} }} """ def stdHtml(