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:
aditya-K2
2023-05-14 01:28:39 +05:30
parent a04c2b3067
commit 513861b4fd
4 changed files with 13 additions and 13 deletions

View File

@@ -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()

View File

@@ -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()
}