This commit is contained in:
aditya-K2
2023-04-28 06:57:44 +05:30
parent 6bcf7d558c
commit 91f9d638cc

View File

@@ -155,7 +155,9 @@ func progressFunc() (string, string, string, float64) {
}
barTopTitle = fmt.Sprintf("[%s Device: %s Shuffle: %t Repeat: %s]", playing, state.Device.Name, state.ShuffleState, state.RepeatState)
if state.Item != nil {
barTitle = fmt.Sprintf("[blue:-:bi]%s[-:-:-] - [green:-:b]%s", state.Item.Name, state.Item.Artists[0].Name)
barTitle = fmt.Sprintf("%s%s[-:-:-] - %s%s",
config.Config.Colors.PBarTrack.String(), state.Item.Name,
config.Config.Colors.PBarArtist.String(), state.Item.Artists[0].Name)
barText = utils.StrTime(float64(state.Progress/1000)) + "/" + utils.StrTime(float64(state.Item.Duration/1000))
percentage = (float64(state.Progress) / float64(state.Item.Duration)) * 100
}