Skip to content

Commit

Permalink
适配新版gradio的暗色主题
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-husky authored May 7, 2023
1 parent 3cf9c88 commit 36ff209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def auto_opentab_delay():
def open():
time.sleep(2) # 打开浏览器
DARK_MODE, = get_conf('DARK_MODE')
if DARK_MODE: webbrowser.open_new_tab(f"http://localhost:{PORT}/?__dark-theme=true")
if DARK_MODE: webbrowser.open_new_tab(f"http://localhost:{PORT}/?__theme=dark")
else: webbrowser.open_new_tab(f"http://localhost:{PORT}")
threading.Thread(target=open, name="open-browser", daemon=True).start()
threading.Thread(target=auto_update, name="self-upgrade", daemon=True).start()
Expand Down

0 comments on commit 36ff209

Please sign in to comment.