[vlc-devel] [PATCH 20/33] qml: show different icon when volume is zero in VolumeWidget

Prince Gupta guptaprince8832 at gmail.com
Wed Feb 3 10:56:36 UTC 2021


---
 modules/gui/qt/player/qml/VolumeWidget.qml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/qt/player/qml/VolumeWidget.qml b/modules/gui/qt/player/qml/VolumeWidget.qml
index b7183a6a64..9e7ebb5b1f 100644
--- a/modules/gui/qt/player/qml/VolumeWidget.qml
+++ b/modules/gui/qt/player/qml/VolumeWidget.qml
@@ -56,6 +56,8 @@ FocusScope{
             iconText:
                 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 )
-- 
2.25.1



More information about the vlc-devel mailing list