Fix interface loading with dark theme even when 'dark_theme' is set to false (#6614)

This commit is contained in:
mamei16 2024-12-30 13:34:19 +01:00 committed by GitHub
parent 292cd489e9
commit cca4ac56fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);