Commit 7e359e88 authored by Rafaël Carré's avatar Rafaël Carré

qt4: Adds a volume-muted icon

parent 8a99e94b
......@@ -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 \
......
......@@ -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" ) );
}
......
......@@ -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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment