[vlc-commits] Qt: SoundSlider: make 100% value green
Francois Cartegnie
git at videolan.org
Tue Jul 12 22:28:19 CEST 2011
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Jul 12 22:26:52 2011 +0200| [d4275f10898b17824e5f40cb19216744027155e4] | committer: Francois Cartegnie
Qt: SoundSlider: make 100% value green
Slided a bit the central point of the orange gradient to make it appear
only above 100% value.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d4275f10898b17824e5f40cb19216744027155e4
---
modules/gui/qt4/qt4.cpp | 2 +-
modules/gui/qt4/util/input_slider.cpp | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt4/qt4.cpp b/modules/gui/qt4/qt4.cpp
index 0ab6cf0..745d7a3 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 d8de45a..c4d0fb4 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 );
More information about the vlc-commits
mailing list