mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 20:09:39 -08:00
refactor: replace spotify icons
This commit is contained in:
parent
686e33d02e
commit
374dc74274
|
@ -47,9 +47,9 @@ func (s *spotify) string() string {
|
||||||
icon := ""
|
icon := ""
|
||||||
switch s.status {
|
switch s.status {
|
||||||
case "paused":
|
case "paused":
|
||||||
icon = s.props.getString(PausedIcon, "")
|
icon = s.props.getString(PausedIcon, "\uF8E3 ")
|
||||||
case "playing":
|
case "playing":
|
||||||
icon = s.props.getString(PlayingIcon, "")
|
icon = s.props.getString(PlayingIcon, "\uE602 ")
|
||||||
}
|
}
|
||||||
separator := s.props.getString(TrackSeparator, " - ")
|
separator := s.props.getString(TrackSeparator, " - ")
|
||||||
return fmt.Sprintf("%s%s%s%s", icon, s.artist, separator, s.track)
|
return fmt.Sprintf("%s%s%s%s", icon, s.artist, separator, s.track)
|
||||||
|
|
|
@ -19,9 +19,7 @@
|
||||||
"foreground": "#ffffff",
|
"foreground": "#ffffff",
|
||||||
"background": "#1BD760",
|
"background": "#1BD760",
|
||||||
"properties": {
|
"properties": {
|
||||||
"prefix": " ",
|
"prefix": " "
|
||||||
"paused_icon": " ",
|
|
||||||
"playing_icon": " "
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue