[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kstyles/keramik
From:       Maks Orlovich <maksim () kde ! org>
Date:       2004-06-15 14:42:22
Message-ID: 20040615144222.217E498E9 () office ! kde ! org
[Download RAW message or body]

CVS commit by orlovich: 

Make the text-icon margin a bit larger
CCMAIL:83341@bugs.kde.org


  M +6 -4      keramik.cpp   1.128


--- kdelibs/kstyles/keramik/keramik.cpp  #1.127:1.128
@@ -1395,8 +1395,10 @@ void KeramikStyle::drawControl( ControlE
                                 if (!button->text().isEmpty())
                                 {
+                                        const int TextToIconMargin = 6;
                                         //Center text + icon w/margin in between..
                                         
                                         //Calculate length of both.
-                                        int length = icon.width() + 4 + \
p->fontMetrics().size(ShowPrefix, button->text()).width(); +                          \
int length = icon.width() + TextToIconMargin +                                        \
+ p->fontMetrics().size(ShowPrefix, button->text()).width();  
                                         //Calculate offset.
@@ -1407,6 +1409,6 @@ void KeramikStyle::drawControl( ControlE
                                         
                                         //new bounding rect for the text
-                                        x += offset + icon.width() + 4;
-                                        w =  length - icon.width() - 4;
+                                        x += offset + icon.width() + \
TextToIconMargin; +                                        w =  length - icon.width() \
- TextToIconMargin;  }
                                 else


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic