Added theme to configuration page

This commit is contained in:
Magnus Åhall 2024-06-25 09:18:15 +02:00
parent c77737a20e
commit 54ba7b160b
6 changed files with 29 additions and 0 deletions

View file

@ -93,4 +93,12 @@
{{ end }}
</div>
<h1>Theme</h1>
<form action="/configuration/theme" id="theme-set">
<select name="theme" onchange="console.log(this.form.submit())">
<option value="default_light" {{ if eq "default_light" .CONFIG.THEME }}selected{{ end }}>Default light</option>
<option value="gruvbox" {{ if eq "gruvbox" .CONFIG.THEME }}selected{{ end }}>Gruvbox</option>
</select>
</form>
{{ end }}