From 25933f8371ae2e188671947a6ffb477926af5214 Mon Sep 17 00:00:00 2001 From: "S. Christian Collins" Date: Tue, 23 Nov 2021 15:42:47 +0000 Subject: [PATCH] Reduce groove opacity for greater contrast with scrollbar/slider/etc. BUG: 444203 --- kstyle/breezestyle.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp index 0b54930a..823c24f3 100644 --- a/kstyle/breezestyle.cpp +++ b/kstyle/breezestyle.cpp @@ -5198,7 +5198,7 @@ namespace Breeze bool Style::drawProgressBarGrooveControl( const QStyleOption* option, QPainter* painter, const QWidget* ) const { const auto& palette( option->palette ); - const auto color( _helper->alphaColor( palette.color( QPalette::WindowText ), 0.3 ) ); + const auto color( _helper->alphaColor( palette.color( QPalette::WindowText ), 0.2 ) ); _helper->renderProgressBarGroove( painter, option->rect, color, palette.color(QPalette::Window) ); return true; } @@ -6708,7 +6708,7 @@ namespace Breeze auto grooveRect( subControlRect( CC_Slider, sliderOption, SC_SliderGroove, widget ) ); // base color - const auto grooveColor( _helper->alphaColor( palette.color( QPalette::WindowText ), 0.3 ) ); + const auto grooveColor( _helper->alphaColor( palette.color( QPalette::WindowText ), 0.2 ) ); if( !enabled ) _helper->renderSliderGroove( painter, grooveRect, grooveColor ); else { @@ -6807,7 +6807,7 @@ namespace Breeze auto grooveRect( subControlRect( CC_Dial, sliderOption, SC_SliderGroove, widget ) ); // groove - const auto grooveColor( KColorUtils::mix( palette.color( QPalette::Window ), palette.color( QPalette::WindowText ), 0.3 ) ); + const auto grooveColor( KColorUtils::mix( palette.color( QPalette::Window ), palette.color( QPalette::WindowText ), 0.2 ) ); // angles const qreal first( dialAngle( sliderOption, sliderOption->minimum ) ); @@ -6902,7 +6902,7 @@ namespace Breeze } const auto& palette( option->palette ); - const auto color( _helper->alphaColor( palette.color( QPalette::WindowText ), 0.3 * (animated ? opacity : 1) ) ); + const auto color( _helper->alphaColor( palette.color( QPalette::WindowText ), 0.2 * (animated ? opacity : 1) ) ); const auto& state( option->state ); const bool horizontal( state & State_Horizontal );