Kaynağa Gözat

Added Sans-Serif theme.

Dave Z 7 yıl önce
ebeveyn
işleme
be95e87e0e
3 değiştirilmiş dosya ile 15 ekleme ve 3 silme
  1. 3 2
      model/theme.go
  2. 1 1
      ui/static/css.go
  3. 11 0
      ui/static/css/sansserif.css

+ 3 - 2
model/theme.go

@@ -9,8 +9,9 @@ import "github.com/miniflux/miniflux/errors"
 // Themes returns the list of available themes.
 func Themes() map[string]string {
 	return map[string]string{
-		"default": "Default",
-		"black":   "Black",
+		"default":   "Default",
+		"black":     "Black",
+		"sansserif": "Sans-Serif",
 	}
 }
 

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
ui/static/css.go


+ 11 - 0
ui/static/css/sansserif.css

@@ -0,0 +1,11 @@
+body,
+.entry-content,
+.entry-content blockquote,
+.entry-content q {
+    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
+}
+
+.entry-content {
+    font-size: 1.17em;
+    font-weight: 400;
+}

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor