Commit 3a0e250b authored by Jan Blackquill's avatar Jan Blackquill 🌈 Committed by Nate Graham

[kstyle]: Tidy up drawRubberBandControl

parent 437c1355
......@@ -5448,15 +5448,15 @@ namespace Breeze
{
painter->save();
painter->setRenderHints( QPainter::Antialiasing );
const auto& palette( option->palette );
auto color = palette.color( QPalette::Highlight );
QPen pen = KColorUtils::mix( color, palette.color( QPalette::Active, QPalette::WindowText ) );
pen.setJoinStyle(Qt::RoundJoin);
painter->setPen( pen );
color.setAlpha( 51 ); // 20% opacity
painter->setBrush( color );
const auto outline = palette.color( QPalette::Highlight );
auto background = outline;
background.setAlphaF( 0.20 );
painter->setPen( outline );
painter->setBrush( background );
painter->drawRect( _helper->strokedRect( option->rect ) );
painter->restore();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment