Implement Rounded Corners

This commit is contained in:
aditya-K2
2023-04-17 23:17:49 +05:30
parent 85b4aba1ad
commit dc2b61196a
3 changed files with 22 additions and 2 deletions

View File

@@ -18,6 +18,7 @@ type ConfigS struct {
ExtraImageWidthX float64 `mapstructure:"image_width_extra_x"`
ExtraImageWidthY float64 `mapstructure:"image_width_extra_y"`
HideImage bool `mapstructure:"hide_image"`
RoundedCorners bool `mapstructure:"rounded_corners"`
}
func NewConfigS() *ConfigS {
@@ -30,6 +31,7 @@ func NewConfigS() *ConfigS {
RedrawInterval: 500,
Colors: NewColors(),
HideImage: false,
RoundedCorners: false,
}
}

View File

@@ -9,5 +9,7 @@ func parseFlags() {
"Specify The Directory to check for config.yml file.")
flag.BoolVar(&Config.HideImage, "hide-image", Config.HideImage,
"Do not display the cover art image.")
flag.BoolVar(&Config.RoundedCorners, "rounded-corners", Config.RoundedCorners,
"Enable Rounded Corners")
flag.Parse()
}