aboutsummaryrefslogtreecommitdiffhomepage
path: root/http/request/context.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2019-09-21 19:10:08 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2019-09-21 20:04:42 -0700
commitafe1faf2141ef9cd3a5564fa33646b821ae5162b (patch)
treeca3fbbea8236154aabeedd54c05775e7f4fcbf35 /http/request/context.go
parentd610d091fed6dbac3a7ae7e6a67e6e8455b77755 (diff)
Add theme variants
- Use CSS variables instead of inherence - Rename default theme to "Light - Serif" - Rename Black theme to "Dark - Serif" - Rename "Sans-Serif" theme to "Light - Sans Serif" - Add "System" theme that use system preferences: Dark or Light - Add Serif and Sans-Serif variants for each color theme
Diffstat (limited to 'http/request/context.go')
-rw-r--r--http/request/context.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/http/request/context.go b/http/request/context.go
index 51ee46a..5befb06 100644
--- a/http/request/context.go
+++ b/http/request/context.go
@@ -64,7 +64,7 @@ func UserLanguage(r *http.Request) string {
func UserTheme(r *http.Request) string {
theme := getContextStringValue(r, UserThemeContextKey)
if theme == "" {
- theme = "default"
+ theme = "light_serif"
}
return theme
}