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"
+22
View File
@@ -0,0 +1,22 @@
:root {
--bg: #0b0500;
--fg: #ffb000;
--muted: #9b6a00;
--panel: transparent;
--border: rgba(255,176,0,0.30);
--border-soft: rgba(255,176,0,0.14);
--link: #ffb000;
--link-hover: #ffe0a0;
--input-bg: #120800;
--input-fg: #ffb000;
--input-border: rgba(255,176,0,0.36);
--button-bg: #180c00;
--button-fg: #ffb000;
--button-border: rgba(255,176,0,0.42);
--button-hover-bg: #261300;
--danger: #ff5c33;
--accent: #ffb000;
--row-hover: rgba(255,176,0,0.08);
--code-bg: #120800;
--code-fg: #ffb000;
}
+22
View File
@@ -0,0 +1,22 @@
:root {
--bg: #152126;
--fg: #c0b1c2;
--muted: #616f73;
--panel: transparent;
--border: rgba(161,166,168,0.22);
--border-soft: rgba(161,166,168,0.10);
--link: #04c0c7;
--link-hover: #e1e1e6;
--input-bg: #10191d;
--input-fg: #c0b1c2;
--input-border: rgba(83,105,145,0.44);
--button-bg: #192224;
--button-fg: #c0b1c2;
--button-border: rgba(83,105,145,0.48);
--button-hover-bg: #222e30;
--danger: #d6498b;
--accent: #876bd6;
--row-hover: rgba(135,107,214,0.10);
--code-bg: #192224;
--code-fg: #79c7ad;
}
+22
View File
@@ -0,0 +1,22 @@
:root {
--bg: #101322;
--fg: #f6eef8;
--muted: #9fa7c7;
--panel: transparent;
--border: rgba(255,255,255,0.16);
--border-soft: rgba(255,255,255,0.07);
--link: #f7b7d8;
--link-hover: #ffffff;
--input-bg: #171b31;
--input-fg: #f6eef8;
--input-border: rgba(247,183,216,0.34);
--button-bg: #1d2342;
--button-fg: #f6eef8;
--button-border: rgba(247,183,216,0.38);
--button-hover-bg: #28305a;
--danger: #ff5d8f;
--accent: #ffd86f;
--row-hover: rgba(247,183,216,0.09);
--code-bg: #171b31;
--code-fg: #aee7ff;
}
+22
View File
@@ -0,0 +1,22 @@
:root {
--bg: #000000;
--fg: #00ff66;
--muted: #008f3a;
--panel: transparent;
--border: rgba(0,255,102,0.28);
--border-soft: rgba(0,255,102,0.14);
--link: #00ff66;
--link-hover: #b6ffd0;
--input-bg: #020802;
--input-fg: #00ff66;
--input-border: rgba(0,255,102,0.36);
--button-bg: #031203;
--button-fg: #00ff66;
--button-border: rgba(0,255,102,0.40);
--button-hover-bg: #062006;
--danger: #ff4f4f;
--accent: #00ff66;
--row-hover: rgba(0,255,102,0.08);
--code-bg: #020802;
--code-fg: #00ff66;
}
+4
View File
@@ -146,6 +146,10 @@ English
<option value="monokai" {{ if eq .Theme "monokai" }}selected{{ end }}>Monokai</option>
<option value="solarized-dark" {{ if eq .Theme "solarized-dark" }}selected{{ end }}>Solarized Dark</option>
<option value="solarized-light" {{ if eq .Theme "solarized-light" }}selected{{ end }}>Solarized Light</option>
<option value="terminal-green" {{ if eq .Theme "terminal-green" }}selected{{ end }}>Terminal Green</option>
<option value="amber-crt" {{ if eq .Theme "amber-crt" }}selected{{ end }}>Amber CRT</option>
<option value="lain-dark" {{ if eq .Theme "lain-dark" }}selected{{ end }}>Lain Dark</option>
<option value="nanoha-dark" {{ if eq .Theme "nanoha-dark" }}selected{{ end }}>Nanoha Dark</option>
</select>
<br>