mirror of
https://github.com/aditya-K2/gspt.git
synced 2026-01-09 13:58:05 -05:00
Implement Rounded Corners
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user