[vlc-commits] [Git][videolan/vlc][master] qml: fix VolumeWidget mute button text/icon binding
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sat Jul 25 23:29:19 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
41e95b96 by SK Devane at 2026-07-25T23:16:16+00:00
qml: fix VolumeWidget mute button text/icon binding
- - - - -
1 changed file:
- modules/gui/qt/player/qml/controlbarcontrols/VolumeWidget.qml
Changes:
=====================================
modules/gui/qt/player/qml/controlbarcontrols/VolumeWidget.qml
=====================================
@@ -62,17 +62,18 @@ T.Pane {
focus: true
paintOnly: root.paintOnly
- text:
- if( _player.muted )
- VLCIcons.volume_muted
- else if ( _player.volume === 0 )
- VLCIcons.volume_zero
- else if ( _player.volume < .33 )
- VLCIcons.volume_low
- else if( _player.volume <= .66 )
- VLCIcons.volume_medium
+ text: {
+ if (_player.muted)
+ return VLCIcons.volume_muted
+ else if (_player.volume === 0)
+ return VLCIcons.volume_zero
+ else if (_player.volume < .33)
+ return VLCIcons.volume_low
+ else if (_player.volume <= .66)
+ return VLCIcons.volume_medium
else
- VLCIcons.volume_high
+ return VLCIcons.volume_high
+ }
description: qsTr("Mute")
onClicked: Player.muted = !Player.muted
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/41e95b96d735cd2b037ae341fa17a1db60375d71
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/41e95b96d735cd2b037ae341fa17a1db60375d71
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list