From 05d8c2791871dc08f8b0e550c1b3ce01f3570bee Mon Sep 17 00:00:00 2001 From: Noah Hsu Date: Sat, 13 Aug 2022 15:11:46 +0800 Subject: [PATCH] chore: rename `icon_color` to `main_color` --- internal/bootstrap/data/setting.go | 2 +- internal/conf/const.go | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) 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"