feat: Update themeing and add a light theme

This commit is contained in:
2024-02-07 16:57:01 +11:00
parent 97f7792612
commit a412573fab
21 changed files with 55 additions and 53 deletions

View File

@@ -1222,7 +1222,8 @@ def qr(data):
# Theme
@app.route('/assets/css/styles.min.css')
def send_css():
print("Using theme: " + theme)
if theme == "live":
return send_from_directory('templates/assets/css', 'styles.min.css')
return send_from_directory('themes', f'{theme}.css')
@app.route('/assets/<path:path>')