On Tuesday 03 February 2009 20:16:49 Marco Martin wrote:
> no idea about the disappeared labels, 

So would it better to just disable setting text color:
http://kotisivu.lumonetti.fi/damu0/images/combo1.png

or set background color (attached diff):
http://kotisivu.lumonetti.fi/damu0/images/combo2.png

or should it be themed more?

Petri

Index: widgets/combobox.cpp
===================================================================
--- widgets/combobox.cpp	(revision 922215)
+++ widgets/combobox.cpp	(working copy)
@@ -95,10 +95,12 @@
 
     KComboBox *native = q->nativeWidget();
     QColor color = Theme::defaultTheme()->color(Theme::TextColor);
+    QColor bgColor = Theme::defaultTheme()->color(Theme::BackgroundColor);
     QPalette p = native->palette();
 
     p.setColor(QPalette::Normal, QPalette::Text, color);
     p.setColor(QPalette::Inactive, QPalette::Text, color);
+    p.setColor(QPalette::Normal, QPalette::Base, bgColor);
     native->setPalette(p);
     native->setFont(Plasma::Theme::defaultTheme()->font(Plasma::Theme::DefaultFont));
 }

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Plasma-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to