feat: add mute volume button
This commit is contained in:
parent
72178cb4bc
commit
91c2d22253
1 changed files with 4 additions and 0 deletions
4
main.go
4
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
|
||||
|
|
Loading…
Reference in a new issue