diff --git a/internal/bootstrap/data/setting.go b/internal/bootstrap/data/setting.go index 3010915f..62dabf9e 100644 --- a/internal/bootstrap/data/setting.go +++ b/internal/bootstrap/data/setting.go @@ -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}, diff --git a/internal/conf/const.go b/internal/conf/const.go index a9fc0f80..1e1b3aa7 100644 --- a/internal/conf/const.go +++ b/internal/conf/const.go @@ -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"