mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-27 03:49:40 -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 := ""
|
||||
switch s.status {
|
||||
case "paused":
|
||||
icon = s.props.getString(PausedIcon, "")
|
||||
icon = s.props.getString(PausedIcon, "\uF8E3 ")
|
||||
case "playing":
|
||||
icon = s.props.getString(PlayingIcon, "")
|
||||
icon = s.props.getString(PlayingIcon, "\uE602 ")
|
||||
}
|
||||
separator := s.props.getString(TrackSeparator, " - ")
|
||||
return fmt.Sprintf("%s%s%s%s", icon, s.artist, separator, s.track)
|
||||
|
|
|
@ -19,9 +19,7 @@
|
|||
"foreground": "#ffffff",
|
||||
"background": "#1BD760",
|
||||
"properties": {
|
||||
"prefix": " ",
|
||||
"paused_icon": " ",
|
||||
"playing_icon": " "
|
||||
"prefix": " "
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue