Change default theme to "system_serif"
This commit is contained in:
parent
bd5aed7b90
commit
7a397c3d13
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue