]> git.sesse.net Git - vlc/commitdiff
Qt: SoundSlider: make 100% value green
authorFrancois Cartegnie <fcvlcdev@free.fr>
Tue, 12 Jul 2011 20:26:52 +0000 (22:26 +0200)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Tue, 12 Jul 2011 20:26:52 +0000 (22:26 +0200)
Slided a bit the central point of the orange gradient to make it appear
only above 100% value.

modules/gui/qt4/qt4.cpp
modules/gui/qt4/util/input_slider.cpp

index 0ab6cf0b42062d2d7de80b2aae100c1b2f01595c..745d7a3d5e2569f284dd81c3fe4b6188250f450a 100644 (file)
@@ -259,7 +259,7 @@ vlc_module_begin ()
     add_bool( "qt-error-dialogs", true, ERROR_TEXT,
               ERROR_TEXT, false )
 
-    add_string( "qt-slider-colours", "255;255;255;20;210;20;255;199;15;245;39;29",
+    add_string( "qt-slider-colours", "153;210;153;20;210;20;255;199;15;245;39;29",
                 SLIDERCOL_TEXT, SLIDERCOL_LONGTEXT, false )
 
     add_bool( "qt-privacy-ask", true, PRIVACY_TEXT, PRIVACY_TEXT,
index d8de45a368362461c03418e7c92481ff24afc3fc..c4d0fb49bfa93c56d86a205b455de807965c6522 100644 (file)
@@ -507,8 +507,8 @@ SoundSlider::SoundSlider( QWidget *_parent, int _i_step, bool b_hard,
 
     QColor * foo;
     add_colors( gradient, gradient2, 0.0, 0, 1, 2 );
-    add_colors( gradient, gradient2, 0.22, 3, 4, 5 );
-    add_colors( gradient, gradient2, 0.5, 6, 7, 8 );
+    add_colors( gradient, gradient2, 0.45, 3, 4, 5 );
+    add_colors( gradient, gradient2, 0.55, 6, 7, 8 );
     add_colors( gradient, gradient2, 1.0, 9, 10, 11 );
 
     QPainter painter( &pixGradient );