Skip to content

Commit

Permalink
feat: allows multiple icon display modes soulteary/docker-flare#14
Browse files Browse the repository at this point in the history
  • Loading branch information
soulteary committed Feb 23, 2022
1 parent d642f6b commit 8dea6a6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ HideSettingButton: false
HideHelpButton: false
# 加密展示链接
EnableEncryptedLink: false
# 链接图标展示模式
IconMode: "DEFAULT"
# 应用主体
Theme: "blackboard"
# 是否启用天气组件
Expand Down
1 change: 1 addition & 0 deletions data/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func UpdateAppearance(update FlareModel.Application) bool {
options.HideSettingsButton = update.HideSettingsButton
options.HideHelpButton = update.HideHelpButton
options.EnableEncryptedLink = update.EnableEncryptedLink
options.IconMode = update.IconMode

return saveAppConfigToYamlFile("config", options)
}
1 change: 1 addition & 0 deletions model/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ type Application struct {
ShowWeather bool `yaml:"ShowWeather"`
Location string `yaml:"Location"`
EnableEncryptedLink bool `yaml:"EnableEncryptedLink"`
IconMode string `yaml:"IconMode"`
}

0 comments on commit 8dea6a6

Please sign in to comment.