feat: add mute volume button

This commit is contained in:
José Carlos Cuevas 2023-12-06 16:28:49 +01:00
parent 72178cb4bc
commit 91c2d22253

View file

@ -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