[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdenetwork/kopete/kopete/contactlist
From: Sune Vuorela <kde () pusling ! com>
Date: 2011-10-05 7:25:55
Message-ID: 20111005072555.D1C88AC886 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1257455 by sune:
Fix up contrast in inactive windows.
Patch by Ralf Jung
BUG: 254309
M +8 -2 kopeteitemdelegate.cpp
--- trunk/KDE/kdenetwork/kopete/kopete/contactlist/kopeteitemdelegate.cpp \
#1257454:1257455 @@ -157,12 +157,18 @@
painter->translate( option.rect.topLeft() );
+ QPalette::ColorGroup cg = QPalette::Active;
+ if (!(option.state & QStyle::State_Enabled))
+ cg = QPalette::Disabled;
+ else if (!(option.state & QStyle::State_Active))
+ cg = QPalette::Inactive;
+
if ( Kopete::AppearanceSettings::self()->greyIdleMetaContacts() && index.data( \
Kopete::Items::IdleTimeRole ).toInt() > 0 ) painter->setPen( \
Kopete::AppearanceSettings::self()->idleContactColor() ); //apply the appropriate \
idle color else if ( option.state & QStyle::State_Selected )
- painter->setPen( option.palette.color( QPalette::Normal, \
QPalette::HighlightedText ) ); + painter->setPen( option.palette.color( cg, \
QPalette::HighlightedText ) ); else
- painter->setPen( option.palette.color( QPalette::Normal, QPalette::Text ) );
+ painter->setPen( option.palette.color( cg, QPalette::Text ) );
paintItem( layout.layout(), painter, option, index, 0 );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic