Change default theme to "system_serif"

This commit is contained in:
Frédéric Guillot 2020-03-19 20:45:05 -07:00
parent bd5aed7b90
commit 7a397c3d13
2 changed files with 2 additions and 2 deletions

View file

@ -64,7 +64,7 @@ func UserLanguage(r *http.Request) string {
func UserTheme(r *http.Request) string {
theme := getContextStringValue(r, UserThemeContextKey)
if theme == "" {
theme = "light_serif"
theme = "system_serif"
}
return theme
}

View file

@ -241,7 +241,7 @@ func TestUserTheme(t *testing.T) {
r, _ := http.NewRequest("GET", "http://example.org", nil)
result := UserTheme(r)
expected := "light_serif"
expected := "system_serif"
if result != expected {
t.Errorf(`Unexpected context value, got %q instead of %q`, result, expected)