From 0a75f65a022b74d37473fad2936cf36790ab168d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Cuevas?= Date: Wed, 6 Dec 2023 16:29:50 +0100 Subject: [PATCH] fix: better play button icon usage --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 363d9be..82ba670 100644 --- a/main.go +++ b/main.go @@ -390,22 +390,22 @@ func main() { } }() - playButton = widget.NewButtonWithIcon("", theme.MediaStopIcon(), func() { + playButton = widget.NewButtonWithIcon("", theme.MediaPlayIcon(), func() { // Here we control each time the button is pressed and update its // appearance anytime it is clicked. We make the player start playing // or pause. if !streamPlayer.IsPlaying() { - playButton.SetIcon(theme.MediaPlayIcon()) + playButton.SetIcon(theme.MediaPauseIcon()) streamPlayer.Load(RADIOSPIRAL_STREAM) streamPlayer.Play() playStatus = true } else { if playStatus { playStatus = false - playButton.SetIcon(theme.MediaPauseIcon()) + playButton.SetIcon(theme.MediaPlayIcon()) } else { playStatus = true - playButton.SetIcon(theme.MediaPlayIcon()) + playButton.SetIcon(theme.MediaPauseIcon()) } streamPlayer.Pause() }