qt4: Adds a volume-muted icon
authorRafaël Carré <funman@videolan.org>
Sat, 8 Sep 2007 18:49:56 +0000 (18:49 +0000)
committerRafaël Carré <funman@videolan.org>
Sat, 8 Sep 2007 18:49:56 +0000 (18:49 +0000)
modules/gui/qt4/Modules.am
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/pixmaps/volume-muted.png [new file with mode: 0644]
modules/gui/qt4/res.qrc

index 90a0220..3e1c997 100644 (file)
@@ -197,6 +197,7 @@ EXTRA_DIST += \
        pixmaps/noart.png \
        pixmaps/playlist_icon.png \
        pixmaps/play.png \
+       pixmaps/pause.png \
        pixmaps/previous.png \
        pixmaps/spref_cone_Audio_64.png \
        pixmaps/spref_cone_Hotkeys_64.png \
@@ -207,6 +208,7 @@ EXTRA_DIST += \
        pixmaps/stop.png \
        pixmaps/volume-high.png \
        pixmaps/volume-low.png \
+       pixmaps/volume-muted.png \
        pixmaps/vlc_help_16px.png \
        pixmaps/vlc_stop_16px.png \
        pixmaps/vlc_play_16px.png \
index 3708c49..51e31a0 100644 (file)
@@ -560,7 +560,9 @@ void ControlsWidget::updateVolume( int i_sliderVolume )
         int i_res = i_sliderVolume * AOUT_VOLUME_MAX /
                             ( 2*volumeSlider->maximum() );
         aout_VolumeSet( p_intf, i_res );
-        if( i_sliderVolume < volumeSlider->maximum()/2 )
+        if( i_sliderVolume == 0 )
+            volMuteLabel->setPixmap( QPixmap(":/pixmaps/volume-muted.png" ) );
+        else if( i_sliderVolume < volumeSlider->maximum()/2 )
             volMuteLabel->setPixmap( QPixmap( ":/pixmaps/volume-low.png" ) );
         else volMuteLabel->setPixmap( QPixmap( ":/pixmaps/volume-high.png" ) );
     }
diff --git a/modules/gui/qt4/pixmaps/volume-muted.png b/modules/gui/qt4/pixmaps/volume-muted.png
new file mode 100644 (file)
index 0000000..7022d6a
Binary files /dev/null and b/modules/gui/qt4/pixmaps/volume-muted.png differ
index 9cf67fb..ffbffee 100644 (file)
@@ -8,6 +8,7 @@
   <file>pixmaps/next.png</file>
   <file>pixmaps/volume-low.png</file>
   <file>pixmaps/volume-high.png</file>
+  <file>pixmaps/volume-muted.png</file>
   <file>pixmaps/go-next.png</file>
   <file alias="vlc128.png">../../../share/vlc128x128.png</file>
   <file alias="vlc48.png">../../../share/vlc48x48.png</file>