From 91c2d22253d988c4108f3668b2d57dfca328ac07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Carlos=20Cuevas?= Date: Wed, 6 Dec 2023 16:28:49 +0100 Subject: [PATCH] feat: add mute volume button --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index ca7c36e..363d9be 100644 --- a/main.go +++ b/main.go @@ -341,11 +341,15 @@ func main() { volumeUp := widget.NewButtonWithIcon("", theme.VolumeUpIcon(), func() { streamPlayer.IncVolume() }) + volumeMute := widget.NewButtonWithIcon("", theme.VolumeMuteIcon(), func() { + streamPlayer.Mute() + }) controlContainer := container.NewHBox( nowPlayingLabelHeader, layout.NewSpacer(), volumeDown, volumeUp, + volumeMute, ) nowPlayingLabel.Alignment = fyne.TextAlignCenter