mirror of
https://github.com/miniflux/v2.git
synced 2025-08-26 18:21:01 +00:00
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
This commit is contained in:
parent
d610d091fe
commit
afe1faf214
18 changed files with 569 additions and 334 deletions
|
@ -7,7 +7,7 @@ package model // import "miniflux.app/model"
|
|||
import "testing"
|
||||
|
||||
func TestValidateTheme(t *testing.T) {
|
||||
for _, status := range []string{"default", "black", "sansserif"} {
|
||||
for _, status := range []string{"light_serif", "dark_sans_serif", "system_serif"} {
|
||||
if err := ValidateTheme(status); err != nil {
|
||||
t.Error(`A valid theme should not generate any error`)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue