Initial import
Some checks failed
Build & Release / build-docker-image (push) Failing after 3m15s
Build & Release / deploy-to-production (push) Has been skipped

This commit is contained in:
2026-03-31 19:09:37 +02:00
commit da7e881311
24 changed files with 2990 additions and 0 deletions

25
app/styles.py Normal file
View File

@@ -0,0 +1,25 @@
import streamlit as st
import sql
def _load_css(filepath):
with open(filepath) as file:
st.html(f"<style>{file.read()}</style>")
def _load_color_selector_styles():
colors = sql.get_colors(1) #FIXME Change to use user profile color palette
for idx, c in enumerate(colors.keys()):
css_color = '#' + colors[c][0]
st.html(f"""
<style>
.st-key-color-selector label:has(> input[value='{idx}']) {{
background-color: {css_color};
}}
</style>
""")
def init_styles():
_load_css("css/theme.css")
_load_color_selector_styles()