pixmaps/type_playlist.png \
pixmaps/type_unknown.xpm \
pixmaps/volume-high.png \
+ pixmaps/volume-medium.png \
pixmaps/volume-low.png \
pixmaps/volume-muted.png \
pixmaps/volume-slider.svg \
VolumeClickHandler *hVolLabel = new VolumeClickHandler( p_intf, this );
volMuteLabel = new QLabel;
- volMuteLabel->setPixmap( QPixmap( ":/pixmaps/volume-high.png" ) );
+ volMuteLabel->setPixmap( QPixmap( ":/pixmaps/volume-medium.png" ) );
volMuteLabel->setToolTip( qtr( "Mute" ) );
volMuteLabel->installEventFilter( hVolLabel );
controlLayout->addWidget( volMuteLabel, 3, 15, Qt::AlignBottom );
}
if( i_sliderVolume == 0 )
volMuteLabel->setPixmap( QPixmap(":/pixmaps/volume-muted.png" ) );
- else if( i_sliderVolume < VOLUME_MAX / 2 )
+ else if( i_sliderVolume < VOLUME_MAX / 3 )
volMuteLabel->setPixmap( QPixmap( ":/pixmaps/volume-low.png" ) );
- else volMuteLabel->setPixmap( QPixmap( ":/pixmaps/volume-high.png" ) );
+ else if( i_sliderVolume > (VOLUME_MAX * 2 / 3 ) )
+ volMuteLabel->setPixmap( QPixmap( ":/pixmaps/volume-high.png" ) );
+ else volMuteLabel->setPixmap( QPixmap( ":/pixmaps/volume-medium.png" ) );
}
void ControlsWidget::updateOnTimer()
<file>pixmaps/type_node.png</file>
<file>pixmaps/type_playlist.png</file>
<file>pixmaps/volume-high.png</file>
+ <file>pixmaps/volume-medium.png</file>
<file>pixmaps/volume-low.png</file>
<file>pixmaps/volume-muted.png</file>
<file>pixmaps/volume-slider-inside.png</file>