新增: 星座运势+AI资讯+知识卡片+桌面设置窗口+秒显示开关
- 星座运势: 天聚数行API集成,5维进度条+幸运标签+今日概述 - AI资讯: 天聚数行API,图文布局5条展示,文件缓存2小时刷新 - 知识卡片: AI生成,关键字+提示词配置,30分钟刷新 - 桌面设置: 独立WebView2窗口,760x1350,含壁纸/布局/城市/颜色等配置 - 显示控制: 壁纸/时间/天气/星座/知识/AI资讯独立开关,秒显示开关 - 文件缓存: 星座运势+AI资讯缓存到本地,启动即显示上次数据 - initDone防抖: 防止设置窗口初始化触发卡片重载
This commit is contained in:
17
config.go
17
config.go
@@ -38,6 +38,12 @@ const (
|
||||
ThemeText ThemeName = "text"
|
||||
)
|
||||
|
||||
type SavedColor struct {
|
||||
Color1 string `json:"color1"`
|
||||
Color2 string `json:"color2"`
|
||||
Gradient bool `json:"gradient"`
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
Zodiac string `json:"zodiac"`
|
||||
City string `json:"city"`
|
||||
@@ -49,6 +55,17 @@ type Config struct {
|
||||
ColorGradient bool `json:"colorGradient"`
|
||||
WallpaperText string `json:"wallpaperText"`
|
||||
Layout Layout `json:"layout"`
|
||||
HideWallpaper bool `json:"hideWallpaper"`
|
||||
HideTime bool `json:"hideTime"`
|
||||
HideWeather bool `json:"hideWeather"`
|
||||
HideZodiac bool `json:"hideZodiac"`
|
||||
HideAINews bool `json:"hideAINews"`
|
||||
ShowSeconds bool `json:"showSeconds"`
|
||||
KnowledgeKeyword string `json:"knowledgeKeyword"`
|
||||
KnowledgePrompt string `json:"knowledgePrompt"`
|
||||
HideKnowledge bool `json:"hideKnowledge"`
|
||||
SavedColors []SavedColor `json:"savedColors"`
|
||||
BingAutoRefresh bool `json:"bingAutoRefresh"`
|
||||
}
|
||||
|
||||
const defaultZodiac = "射手座"
|
||||
|
||||
Reference in New Issue
Block a user