From 9572ab8a4dc2dd4b8fec3111fdfbd0eddc157362 Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Mon, 31 Aug 2015 10:31:36 +0200 Subject: [PATCH] reduce size of checkbox and radiobuttons; reduced spacing between mark and text. --- kstyle/breeze.h | 2 +- kstyle/breezehelper.cpp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/kstyle/breeze.h b/kstyle/breeze.h index eed31b4f..b1662472 100644 --- a/kstyle/breeze.h +++ b/kstyle/breeze.h @@ -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, diff --git a/kstyle/breezehelper.cpp b/kstyle/breezehelper.cpp index a3ea95ac..52c94181 100644 --- a/kstyle/breezehelper.cpp +++ b/kstyle/breezehelper.cpp @@ -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 )