correct shadow color

svn path=/trunk/KDE/kdelibs/; revision=935565
This commit is contained in:
Marco Martin 2009-03-05 16:24:12 +00:00
parent d43926b2ca
commit a219e97dae

View File

@ -85,7 +85,11 @@ IconWidgetPrivate::~IconWidgetPrivate()
void IconWidgetPrivate::readColors() void IconWidgetPrivate::readColors()
{ {
textColor = Plasma::Theme::defaultTheme()->color(Theme::TextColor); textColor = Plasma::Theme::defaultTheme()->color(Theme::TextColor);
shadowColor = Plasma::Theme::defaultTheme()->color(Theme::BackgroundColor); if (qGray(textColor.rgb()) > 192) {
shadowColor = Qt::black;
} else {
shadowColor = Qt::white;
}
} }
void IconWidgetPrivate::colorConfigChanged() void IconWidgetPrivate::colorConfigChanged()