chore: rename `icon_color` to `main_color`

pull/1604/head
Noah Hsu 2022-08-13 15:11:46 +08:00
parent 06e15fc149
commit 05d8c27918
2 changed files with 5 additions and 4 deletions

View File

@ -75,7 +75,7 @@ func initialSettings() {
// style settings
{Key: conf.Logo, Value: "https://cdn.jsdelivr.net/gh/alist-org/logo@main/logo.svg", Type: conf.TypeString, Group: model.STYLE},
{Key: conf.Favicon, Value: "https://cdn.jsdelivr.net/gh/alist-org/logo@main/logo.svg", Type: conf.TypeString, Group: model.STYLE},
{Key: conf.IconColor, Value: "#1890ff", Type: conf.TypeString, Group: model.STYLE},
{Key: conf.MainColor, Value: "#1890ff", Type: conf.TypeString, Group: model.STYLE},
{Key: "home_icon", Value: "🏠", Type: conf.TypeString, Group: model.STYLE},
// preview settings
{Key: conf.TextTypes, Value: "txt,htm,html,xml,java,properties,sql,js,md,json,conf,ini,vue,php,py,bat,gitignore,yml,go,sh,c,cpp,h,hpp,tsx,vtt,srt,ass,rs,lrc", Type: conf.TypeText, Group: model.PREVIEW, Flag: model.PRIVATE},

View File

@ -14,10 +14,11 @@ const (
ApiUrl = "api_url"
BasePath = "base_path"
SiteTitle = "site_title"
Logo = "logo"
Favicon = "favicon"
Announcement = "announcement"
IconColor = "icon_color"
Logo = "logo"
Favicon = "favicon"
MainColor = "main_color"
// preview
TextTypes = "text_types"