From 9b40257b21ed1bbb418405f89f34341e89311a1b Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Sun, 10 May 2009 14:38:00 +0000 Subject: [PATCH] sinc link colors svn path=/trunk/KDE/kdelibs/; revision=966171 --- widgets/label.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/widgets/label.cpp b/widgets/label.cpp index 69a8371c6..add811cac 100644 --- a/widgets/label.cpp +++ b/widgets/label.cpp @@ -25,6 +25,7 @@ #include #include +#include #include "theme.h" #include "svg.h" @@ -74,6 +75,10 @@ public: QPalette p = native->palette(); p.setColor(QPalette::Normal, QPalette::WindowText, color); p.setColor(QPalette::Inactive, QPalette::WindowText, color); + + KColorScheme colorScheme(QPalette::Active, KColorScheme::View, Plasma::Theme::defaultTheme()->colorScheme()); + p.setColor(QPalette::Normal, QPalette::Link, colorScheme.foreground(KColorScheme::LinkText).color()); + p.setColor(QPalette::Normal, QPalette::LinkVisited, colorScheme.foreground(KColorScheme::VisitedText).color()); native->setPalette(p); native->setFont(Plasma::Theme::defaultTheme()->font(Plasma::Theme::DefaultFont)); }