From c47fdfefbe0847f546537264233ab66e7bdf6d0f Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Sat, 3 Oct 2009 15:20:56 +0000 Subject: [PATCH] set the disabled color as a transparent version of the text color svn path=/trunk/KDE/kdelibs/; revision=1030948 --- widgets/label.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/widgets/label.cpp b/widgets/label.cpp index bb3aa0076..5a5bb0da0 100644 --- a/widgets/label.cpp +++ b/widgets/label.cpp @@ -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));