Qt4 - I couldn't do more ugly... If you know how to... please try :D
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 23 Nov 2007 08:27:23 +0000 (08:27 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 23 Nov 2007 08:27:23 +0000 (08:27 +0000)
modules/gui/qt4/util/input_slider.cpp

index f6f299b..af54164 100644 (file)
@@ -90,9 +90,11 @@ SoundSlider::SoundSlider( QWidget *_parent, int _i_step, bool b_hard )
 //    QBixmap mask = QBitmap( QPixmap );
 
     QPainter p( &pixGradient );
-    QLinearGradient gradient( 0, 0, WLENGTH, WHEIGHT );
+    QLinearGradient gradient( 0, 0, WLENGTH, 0 );
     gradient.setColorAt( 0.0, Qt::white );
-    gradient.setColorAt( 1.0, Qt::blue );
+    gradient.setColorAt( 0.2, QColor( 20, 226, 20 ) );
+    gradient.setColorAt( 0.5, QColor( 255, 176, 15 ) );
+    gradient.setColorAt( 1.0, QColor( 235, 30, 20 ) );
     p.setPen( Qt::NoPen );
     p.setBrush( gradient );