Make toolbuttons outlined

BUG: 420498
wilder-5.24
Jan Blackquill 5 years ago committed by Nate Graham
parent 6528266b8a
commit 5f28284a0f
  1. 11
      kstyle/breezehelper.cpp
  2. 6
      kstyle/breezestyle.cpp

@ -709,21 +709,18 @@ namespace Breeze
painter->setRenderHints( QPainter::Antialiasing );
const QRectF baseRect( rect.adjusted( 1, 1, -1, -1 ) );
const qreal radius( frameRadius( PenWidth::Frame ) );
if( sunken )
{
const qreal radius( frameRadius( PenWidth::NoPen ) );
painter->setPen( Qt::NoPen );
painter->setBrush( color );
painter->setPen( color );
painter->setBrush( alphaColor(color, 0.35) );
painter->drawRoundedRect( baseRect, radius, radius );
painter->drawRoundedRect( strokedRect ( baseRect ), radius, radius );
} else {
const qreal radius( frameRadius( PenWidth::Frame ) );
painter->setPen( color );
painter->setBrush( Qt::NoBrush );
const QRectF outlineRect( strokedRect( baseRect ) );

@ -6140,6 +6140,9 @@ namespace Breeze
copy.rect = menuRect;
drawPrimitive( PE_IndicatorButtonDropDown, &copy, painter, widget );
copy.state &= ~State_MouseOver;
copy.state &= ~State_Sunken;
copy.state &= ~State_On;
if( sunken && !flat ) copy.rect.translate( 1, 1 );
drawPrimitive( PE_IndicatorArrowDown, &copy, painter, widget );
@ -6148,6 +6151,9 @@ namespace Breeze
{
copy.rect = menuRect;
copy.state &= ~State_MouseOver;
copy.state &= ~State_Sunken;
copy.state &= ~State_On;
if( sunken && !flat ) copy.rect.translate( 1, 1 );
if( menuStyle == BreezePrivate::ToolButtonMenuArrowStyle::InlineSmall )

Loading…
Cancel
Save