sinc link colors

svn path=/trunk/KDE/kdelibs/; revision=966171
This commit is contained in:
Marco Martin 2009-05-10 14:38:00 +00:00
parent 6887389fba
commit 9b40257b21

View File

@ -25,6 +25,7 @@
#include <kmimetype.h> #include <kmimetype.h>
#include <kglobalsettings.h> #include <kglobalsettings.h>
#include <kcolorscheme.h>
#include "theme.h" #include "theme.h"
#include "svg.h" #include "svg.h"
@ -74,6 +75,10 @@ public:
QPalette p = native->palette(); QPalette p = native->palette();
p.setColor(QPalette::Normal, QPalette::WindowText, color); p.setColor(QPalette::Normal, QPalette::WindowText, color);
p.setColor(QPalette::Inactive, 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->setPalette(p);
native->setFont(Plasma::Theme::defaultTheme()->font(Plasma::Theme::DefaultFont)); native->setFont(Plasma::Theme::defaultTheme()->font(Plasma::Theme::DefaultFont));
} }