Przeglądaj źródła

Change default theme to "system_serif"

Frédéric Guillot 6 lat temu
rodzic
commit
7a397c3d13
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      http/request/context.go
  2. 1 1
      http/request/context_test.go

+ 1 - 1
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 = "light_serif"
+		theme = "system_serif"
 	}
 	return theme
 }

+ 1 - 1
http/request/context_test.go

@@ -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)