Bug 88495

Summary: Highlighted contacts don't use inverse text color
Product: [Applications] kopete Reporter: Erik Charlebois <erikcharlebois>
Component: Contact listAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 0.9.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Erik Charlebois 2004-08-31 05:12:06 UTC
Version:           0.9.0 (using KDE KDE 3.3.0)
Installed from:    Compiled From Sources
Compiler:          gcc 3.3.2 used -O2 -march=pentium4
OS:                Linux

I use a dark blue highlighting color with a white inverted text. When I click on a contact, it gets highlighted dark blue but the inverted text color (white) is not used. Instead, the normal black text color is used and it's difficult to read the selected contact.
Comment 1 Olivier Goffart 2004-09-02 15:03:07 UTC
CVS commit by ogoffart: 

Use the highlight color for highlight cells.

CCMAIL: 88495-done@bugs.kde.org
CCMAIL: kde@metafoo.co.uk

I will beckport it, so it should be fixed in KDE 3.1.1


  M +7 -2      kopetelistviewitem.cpp   1.15


--- kdenetwork/kopete/kopete/contactlist/kopetelistviewitem.cpp  #1.14:1.15
@@ -974,6 +974,11 @@ void Item::paintCell( QPainter *p, const
         // END OF PASTE
 
+        
+        //do you see a better way to tell the TextComponent we are selected ?  - Olivier 2004-09-02
+        if ( isSelected() ) 
+                _cg.setColor(QColorGroup::Text , _cg.highlightedText() );
+        
         if ( Component *comp = component( column ) )
-                comp->paint( &paint, cg );
+                comp->paint( &paint, _cg );
         paint.end();