From: Francois Cartegnie Date: Tue, 12 Jul 2011 20:26:52 +0000 (+0200) Subject: Qt: SoundSlider: make 100% value green X-Git-Tag: 1.2.0-pre1~1790 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=d4275f10898b17824e5f40cb19216744027155e4;p=vlc Qt: SoundSlider: make 100% value green Slided a bit the central point of the orange gradient to make it appear only above 100% value. --- diff --git a/modules/gui/qt4/qt4.cpp b/modules/gui/qt4/qt4.cpp index 0ab6cf0b42..745d7a3d5e 100644 --- a/modules/gui/qt4/qt4.cpp +++ b/modules/gui/qt4/qt4.cpp @@ -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, diff --git a/modules/gui/qt4/util/input_slider.cpp b/modules/gui/qt4/util/input_slider.cpp index d8de45a368..c4d0fb49bf 100644 --- a/modules/gui/qt4/util/input_slider.cpp +++ b/modules/gui/qt4/util/input_slider.cpp @@ -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 );