diff options
| author | frosty <gabriel@bwaaa.monster> | 2026-05-10 00:00:08 -0400 |
|---|---|---|
| committer | frosty <gabriel@bwaaa.monster> | 2026-05-10 00:00:08 -0400 |
| commit | 3c856f93ed3d1362a8b6190d9ce44b2939fca717 (patch) | |
| tree | f98a84d341b7b1739b573441e29cd366e04ea7b4 /templates/settings.html | |
| parent | ba6dae676a5c268d6b4265d26b9556ba1cfa6923 (diff) | |
| download | omnisearch-3c856f93ed3d1362a8b6190d9ce44b2939fca717.tar.gz | |
feat(wip): load themes dynamically from static/themes/*.css
Diffstat (limited to 'templates/settings.html')
| -rw-r--r-- | templates/settings.html | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/templates/settings.html b/templates/settings.html index d353d24..2f4ecb6 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -8,8 +8,7 @@ OmniSearch - {{l("settings_title")}} </title> <link rel="stylesheet" href="static/main.css"> - {{if theme == "light"}}<link rel="preload" href="static/theme-light.css" as="style"><link rel="stylesheet" href="static/theme-light.css">{{endif}} - {{if theme == "dark"}}<link rel="preload" href="static/theme-dark.css" as="style"><link rel="stylesheet" href="static/theme-dark.css">{{endif}} + <link rel="stylesheet" href="static/themes/{{theme}}.css"> <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> <link rel="search" type="application/opensearchdescription+xml" @@ -58,9 +57,9 @@ <div class="settings-field"> <label class="settings-label" for="theme">{{l("theme_label")}}</label> <select id="theme" name="theme" class="settings-select"> - <option value="system" {{if theme == "system"}}selected{{endif}}>{{l("theme_system")}}</option> - <option value="light" {{if theme == "light"}}selected{{endif}}>{{l("theme_light")}}</option> - <option value="dark" {{if theme == "dark"}}selected{{endif}}>{{l("theme_dark")}}</option> + {{for t in themes}} + <option value="{{t[0]}}" {{if theme == t[0]}}selected{{endif}}>{{t[1]}}</option> + {{endfor}} </select> </div> </section> |
