From 3ffc0a060a55e5e1adf25d8ea16cd2f5e3e7e8db Mon Sep 17 00:00:00 2001 From: Lucca Ketterer Date: Thu, 19 Jan 2023 02:45:39 +0100 Subject: [PATCH] dark theme --- controller/controller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controller/controller.py b/controller/controller.py index 302e411..68513b8 100755 --- a/controller/controller.py +++ b/controller/controller.py @@ -81,12 +81,13 @@ def set_pixels(color): # @click.option("-v", help="Set HEX Color as base visualizer color: -v ffffff") def main(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: if line == b' You can now view your Streamlit app in your browser.\n': break webview.create_window('LED Control', 'http://localhost:8501') webview.start() + proc.terminate() exit() match arg[0]: