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

List:       kde-commits
Subject:    branches/KDE/4.4/kdebase/runtime/kstyles/oxygen
From:       Hugo Pereira Da Costa <hugo.pereira () free ! fr>
Date:       2010-05-10 15:15:02
Message-ID: 20100510151502.C4078AC8B4 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1125038 by hpereiradacosta:

Backport r1125026
Use _helper.viewFocusBrush() in place of kcolorscheme(...) every time it is possible, \
for optimization  purposes. Thanks to Allan Sandfeld Jensen for providing the \
                original patch.
CCBUG: 226719


 M  +2 -2      oxygen.cpp  


--- branches/KDE/4.4/kdebase/runtime/kstyles/oxygen/oxygen.cpp #1125037:1125038
@@ -3404,9 +3404,9 @@
                         animations().scrollBarEngine().setSubControlRect( widget, \
subcontrol, r );  }
 
-                    QColor highlight = \
                KColorScheme(pal.currentColorGroup()).decoration(KColorScheme::HoverColor).color();
                
                     if( r.intersects(  \
animations().scrollBarEngine().subControlRect( widget, subcontrol ) ) )  {
+                        QColor highlight = _viewHoverBrush.brush(pal).color();
 
                         if( animated )
                         {
@@ -3429,7 +3429,7 @@
                 bool animated( animations().toolBarEngine().isAnimated( widget, \
                Oxygen::AnimationHover ) );
                 qreal opacity( animations().toolBarEngine().opacity( widget, \
Oxygen::AnimationHover ) );  
-                QColor highlight = \
KColorScheme(pal.currentColorGroup()).decoration(KColorScheme::HoverColor).color(); + \
QColor highlight = _viewHoverBrush.brush(pal).color();  color = pal.color( \
QPalette::WindowText );  
                 // toolbuttons


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

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