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

List:       kde-commits
Subject:    kdelibs/kstyles/keramik
From:       Pascal Létourneau <pletourn () globetrotter ! net>
Date:       2004-07-13 4:32:47
Message-ID: 20040713043247.E138016B10 () office ! kde ! org
[Download RAW message or body]

CVS commit by pletourn: 

Center toolbar separator
Give spinbox a 1-pixel frame, like lineedit


  M +8 -7      keramik.cpp   1.132


--- kdelibs/kstyles/keramik/keramik.cpp  #1.131:1.132
@@ -864,5 +864,5 @@ void KeramikStyle::drawPrimitive( Primit
                 case PE_PanelLineEdit:
                 {
-                        if (!opt.isDefault() && opt.lineWidth() == 1)
+                        if ( opt.isDefault() || opt.lineWidth() == 1 )
                         {
                                 //1-pixel frames can not be simply clipped wider \
frames, as that would produce too little contrast on the lower border @@ -1085,14 \
+1085,14 @@ void KeramikStyle::drawPrimitive( Primit  {
                                 p->setPen(cg.mid());
-                                p->drawLine(4, r.height()/2, r.width()-5, \
r.height()/2); +                                p->drawLine(4, r.height()/2-1, \
r.width()-5, r.height()/2-1);  p->setPen(cg.light());
-                                p->drawLine(4, r.height()/2+1, r.width()-5, \
r.height()/2+1); +                                p->drawLine(4, r.height()/2, \
r.width()-5, r.height()/2);  }
                         else
                         {
                                 p->setPen(cg.mid());
-                                p->drawLine(r.width()/2, 4, r.width()/2, \
r.height()-5); +                                p->drawLine(r.width()/2-1, 4, \
r.width()/2-1, r.height()-5);  p->setPen(cg.light());
-                                p->drawLine(r.width()/2+1, 4, r.width()/2+1, \
r.height()-5); +                                p->drawLine(r.width()/2, 4, \
r.width()/2, r.height()-5);  }
                         break;
@@ -2363,4 +2363,5 @@ int KeramikStyle::pixelMetric(PixelMetri
                         loader.size( keramik_scrollbar_vbar + KeramikSlider3 \
).height();  
+                case PM_SpinBoxFrameWidth:              
                 case PM_DefaultFrameWidth:
                         return 1;


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

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