set the disabled color as a transparent version of the text color

svn path=/trunk/KDE/kdelibs/; revision=1030948
This commit is contained in:
Marco Martin 2009-10-03 15:20:56 +00:00
parent a7ac1feaf2
commit c47fdfefbe

View File

@ -88,6 +88,8 @@ public:
QPalette p = native->palette();
p.setColor(QPalette::Normal, QPalette::WindowText, color);
p.setColor(QPalette::Inactive, QPalette::WindowText, color);
color.setAlphaF(0.6);
p.setColor(QPalette::Disabled, QPalette::WindowText, color);
p.setColor(QPalette::Normal, QPalette::Link, Theme::defaultTheme()->color(Theme::LinkColor));
p.setColor(QPalette::Normal, QPalette::LinkVisited, Theme::defaultTheme()->color(Theme::VisitedLinkColor));