mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-04 14:17:28 +00:00
Fix interface loading with dark theme even when 'dark_theme' is set to false (#6614)
This commit is contained in:
parent
292cd489e9
commit
cca4ac56fa
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue