新增: 多布局切换+秒显示+节日倒计时+等宽数字+作者署名
This commit is contained in:
11
config.go
11
config.go
@@ -20,6 +20,13 @@ const (
|
||||
WPColor WallpaperType = "color"
|
||||
)
|
||||
|
||||
type Layout string
|
||||
|
||||
const (
|
||||
LayoutSingle Layout = "single"
|
||||
LayoutMulti Layout = "multi"
|
||||
)
|
||||
|
||||
type ThemeName string
|
||||
|
||||
const (
|
||||
@@ -41,6 +48,7 @@ type Config struct {
|
||||
Color2 string `json:"color2"`
|
||||
ColorGradient bool `json:"colorGradient"`
|
||||
WallpaperText string `json:"wallpaperText"`
|
||||
Layout Layout `json:"layout"`
|
||||
}
|
||||
|
||||
const defaultZodiac = "射手座"
|
||||
@@ -72,6 +80,9 @@ func loadConfig() *Config {
|
||||
if cfg.Color1 == "" {
|
||||
cfg.Color1 = "#1a1a2e"
|
||||
}
|
||||
if cfg.Layout == "" {
|
||||
cfg.Layout = LayoutSingle
|
||||
}
|
||||
return &cfg
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user