dark theme

This commit is contained in:
Lucca Ketterer 2023-01-19 02:45:39 +01:00
parent 31302bed1d
commit 3ffc0a060a

View File

@ -81,12 +81,13 @@ def set_pixels(color):
# @click.option("-v", help="Set HEX Color as base visualizer color: -v ffffff") # @click.option("-v", help="Set HEX Color as base visualizer color: -v ffffff")
def main(arg): def main(arg):
if arg == (): if arg == ():
proc = subprocess.Popen(["python", "-m", "streamlit", "run", "/var/lib/lc/gui.py", "--server.headless", "True"], stdout=subprocess.PIPE) proc = subprocess.Popen(["python", "-m", "streamlit", "run", "/var/lib/lc/gui.py", "--server.headless", "True", "--theme.base", "dark", "--theme.primaryColor", "#9f0000", "--theme.backgroundColor", "#181a1b", "--theme.secondaryBackgroundColor", "#1f2123", "--theme.textColor", "#c4c0b8"], stdout=subprocess.PIPE)
for line in proc.stdout: for line in proc.stdout:
if line == b' You can now view your Streamlit app in your browser.\n': if line == b' You can now view your Streamlit app in your browser.\n':
break break
webview.create_window('LED Control', 'http://localhost:8501') webview.create_window('LED Control', 'http://localhost:8501')
webview.start() webview.start()
proc.terminate()
exit() exit()
match arg[0]: match arg[0]: