reduce size of checkbox and radiobuttons; reduced spacing between mark and text.

wilder-pre-rebase
Hugo Pereira Da Costa 11 years ago
parent 3230d9f7d7
commit 9572ab8a4d
  1. 2
      kstyle/breeze.h
  2. 12
      kstyle/breezehelper.cpp

@ -95,7 +95,7 @@ namespace Breeze
// checkboxes and radio buttons
CheckBox_Size = 20,
CheckBox_FocusMarginWidth = 2,
CheckBox_ItemSpacing = 6,
CheckBox_ItemSpacing = 4,
// menubar items
MenuBarItem_MarginWidth = 10,

@ -822,7 +822,7 @@ namespace Breeze
// copy rect and radius
QRectF frameRect( rect );
frameRect.adjust( 1, 1, -1, -1 );
frameRect.adjust( 2, 2, -2, -2 );
const qreal radius( frameRadius() );
// shadow
@ -876,10 +876,10 @@ namespace Breeze
painter->setRenderHint( QPainter::Antialiasing, false );
QPainterPath path;
path.moveTo( 4, 4 );
path.lineTo( qreal( Metrics::CheckBox_Size ) -5, 4 );
path.lineTo( 4, qreal( Metrics::CheckBox_Size ) - 5 );
painter->drawPath( path.translated( rect.topLeft() ) );
path.moveTo( 3, 3 );
path.lineTo( frameRect.right() - 6, 3 );
path.lineTo( 3, frameRect.bottom() - 6 );
painter->drawPath( path.translated( frameRect.topLeft() ) );
} else if( state == CheckAnimated ) {
@ -911,7 +911,7 @@ namespace Breeze
// copy rect
QRectF frameRect( rect );
frameRect.adjust( 1, 1, -1, -1 );
frameRect.adjust( 2, 2, -2, -2 );
// shadow
if( sunken )

Loading…
Cancel
Save