用户系统增加页面背景颜色设置

This commit is contained in:
刘祥超
2023-03-16 16:58:14 +08:00
parent 3ad6c00956
commit e938bb34f1
2 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
// Copyright 2023 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
package systemconfigs
func DefaultThemeBackgroundColors() []string {
return []string{
"14539A",
"276AC6",
"0081AF",
"473BF0",
"ACADBC",
"9B9ECE",
"C96480",
"B47978",
"B1AE91",
"49A078",
"46237A",
"000500",
}
}
// ThemeConfig 风格模板设置
type ThemeConfig struct {
BackgroundColor string `yaml:"backgroundColor" json:"backgroundColor"` // 背景色16进制不需要带井号#
}

View File

@@ -29,6 +29,8 @@ type UserUIConfig struct {
DefaultBandwidthDateRange string `json:"defaultBandwidthDateRange"` // 默认带宽周期
BandwidthAlgo BandwidthAlgo `json:"bandwidthAlgo"` // 带宽算法
} `json:"trafficStats"` // 流量统计相关设置
Theme ThemeConfig `yaml:"theme" json:"theme"` // 风格模板
}
func DefaultUserUIConfig() *UserUIConfig {