Bug 88495 - Highlighted contacts don't use inverse text color
Summary: Highlighted contacts don't use inverse text color
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Unmaintained
Component: Contact list (show other bugs)
Version: 0.9.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-31 05:12 UTC by Erik Charlebois
Modified: 2004-09-02 15:03 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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();