mirror of
https://github.com/aditya-K2/gspt.git
synced 2026-01-08 21:37:58 -05:00
Rename use_nerd_icons to use_icons
use_nerd_icons meant using special characters to display information. As in user could use emojis or even strings to display information. The parameter name seemed kind of misleading. Hence, renaming it.
This commit is contained in:
@@ -28,7 +28,7 @@ type ConfigS struct {
|
||||
ImageWidthExtraY int `yaml:"image_width_extra_y" mapstructure:"image_width_extra_y"`
|
||||
HideImage bool `yaml:"hide_image" mapstructure:"hide_image"`
|
||||
RoundedCorners bool `yaml:"rounded_corners" mapstructure:"rounded_corners"`
|
||||
UseNerdIcons bool `yaml:"use_nerd_icons" mapstructure:"use_nerd_icons"`
|
||||
UseIcons bool `yaml:"use_icons" mapstructure:"use_icons"`
|
||||
}
|
||||
|
||||
func NewConfigS() *ConfigS {
|
||||
@@ -80,8 +80,8 @@ func ReadConfig() {
|
||||
if Flags.RoundedCorners != false {
|
||||
Config.RoundedCorners = Flags.RoundedCorners
|
||||
}
|
||||
if Flags.UseNerdIcons != false {
|
||||
Config.UseNerdIcons = Flags.UseNerdIcons
|
||||
if Flags.UseIcons != false {
|
||||
Config.UseIcons = Flags.UseIcons
|
||||
}
|
||||
}
|
||||
useFlags()
|
||||
|
||||
@@ -12,7 +12,7 @@ type Flag struct {
|
||||
ConfigPath string
|
||||
HideImage bool
|
||||
RoundedCorners bool
|
||||
UseNerdIcons bool
|
||||
UseIcons bool
|
||||
}
|
||||
|
||||
func parseFlags() {
|
||||
@@ -22,7 +22,7 @@ func parseFlags() {
|
||||
"Do not display the cover art image.")
|
||||
flag.BoolVar(&Flags.RoundedCorners, "rounded-corners", Config.RoundedCorners,
|
||||
"Enable Rounded Corners")
|
||||
flag.BoolVar(&Flags.UseNerdIcons, "nerd-icons", Config.UseNerdIcons,
|
||||
"Use Nerd Icons")
|
||||
flag.BoolVar(&Flags.UseIcons, "icons", Config.UseIcons,
|
||||
"Use Icons")
|
||||
flag.Parse()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user