feat(themes): add neogothic theme, add theme switcher to footer

This commit is contained in:
h
2025-11-25 22:48:39 +01:00
parent 9a20a4d3f6
commit 804fddcc9c
2 changed files with 414 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
{{if .IsSigned}}
<div class="item theme-selector-footer" style="margin-left: 15px;">
<form class="ui form" action="{{AppSubUrl}}/user/settings/appearance/theme" method="post">
<input type="hidden" name="_csrf" value="{{.CsrfToken}}">
<select name="theme" id="footer-theme-select" class="ui dropdown">
<option value="neogothic" {{if eq .SignedUser.Theme "neogothic"}}selected{{end}}>neogothic</option>
<option value="gitea-dark" {{if eq .SignedUser.Theme "gitea-dark"}}selected{{end}}>gitea-dark</option>
<option value="gitea-light" {{if eq .SignedUser.Theme "gitea-light"}}selected{{end}}>gitea-light</option>
</select>
<button type="submit" class="ui mini basic button">OK</button>
</form>
</div>
{{end}}