From cca4ac56fa2e093af99552a4a9ce6aece21bde41 Mon Sep 17 00:00:00 2001 From: mamei16 Date: Mon, 30 Dec 2024 13:34:19 +0100 Subject: [PATCH] Fix interface loading with dark theme even when 'dark_theme' is set to false (#6614) --- server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.py b/server.py index d6069d5e..31e1c4c6 100644 --- a/server.py +++ b/server.py @@ -154,6 +154,9 @@ def create_interface(): if ({str(shared.settings['dark_theme']).lower()}) {{ document.getElementsByTagName('body')[0].classList.add('dark'); }} + else {{ + document.getElementsByTagName('body')[0].classList.remove('dark'); + }} {js} {ui.show_controls_js} toggle_controls(x);