mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-23 03:00:24 +08:00
用户系统增加页面背景颜色设置
This commit is contained in:
25
pkg/systemconfigs/theme_config.go
Normal file
25
pkg/systemconfigs/theme_config.go
Normal 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进制,不需要带井号(#)
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user