新增: 多布局切换+秒显示+节日倒计时+等宽数字+作者署名

This commit is contained in:
2026-05-25 23:10:19 +08:00
parent d4bce23d19
commit 2287e12e0d
4 changed files with 248 additions and 100 deletions

View File

@@ -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
}