1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Add support for theme color based on preferred color scheme of OS

This commit is contained in:
Dustin Breuer 2021-11-28 16:20:51 +01:00 committed by fguillot
parent ca87894ab2
commit b21f12015e
4 changed files with 14 additions and 5 deletions

View file

@ -87,8 +87,8 @@ func (f *funcMap) Map() template.FuncMap {
"isodate": func(ts time.Time) string {
return ts.Format("2006-01-02 15:04:05")
},
"theme_color": func(theme string) string {
return model.ThemeColor(theme)
"theme_color": func(theme, colorScheme string) string {
return model.ThemeColor(theme, colorScheme)
},
"icon": func(iconName string) template.HTML {
return template.HTML(fmt.Sprintf(