add theme: Terminal Green, Amber CRT, Lain dark, Nanoha dark

This commit is contained in:
Anya Tokugawa committed 2026-06-01 00:36:15 +09:00
1 parent 97970cf105
commit c1bc8f0c03
8 files changed
+96 -2

No files matched your search

+1 -1
View File
@@ -167,7 +167,7 @@ func (s *Server) handleConfig(
if v := strings.TrimSpace(r.FormValue("theme")); v != "" {
switch v {
case "dark", "light", "monokai", "solarized-dark", "solarized-light":
case "dark", "light", "monokai", "solarized-dark", "solarized-light", "terminal-green", "amber-crt", "lain-dark", "nanoha-dark":
theme = v
default:
http.Error(w, "invalid theme", http.StatusBadRequest)
+2
View File
@@ -11,6 +11,7 @@ var translations = map[string]map[string]string{
"config.wiki_name": "Wiki name",
"config.locale": "Language",
"config.timezone": "Timezone",
"config.theme": "Theme",
"config.zombie_grace_hours": "Zombie grace period (hours)",
"config.home_path": "Home semantic path",
"config.save": "Save",
@@ -44,6 +45,7 @@ var translations = map[string]map[string]string{
"config.locale": "言語",
"config.timezone": "タイムゾーン",
"config.zombie_grace_hours": "ゾンビ判定猶予時間(時間)",
"config.theme": "テーマ",
"config.home_path": "トップページ",
"config.save": "保存",
"config.nav": "ナビゲーション",
+1 -1
View File
@@ -12,7 +12,7 @@ func (s *Server) getTheme() string {
}
switch theme {
case "dark", "light", "monokai", "solarized-dark", "solarized-light":
case "dark", "light", "monokai", "solarized-dark", "solarized-light", "terminal-green", "amber-crt", "lain-dark", "nanoha-dark":
return theme
default:
return "dark"