From a219e97dae6823136b3be6af9616d3d3d25f8e1a Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 5 Mar 2009 16:24:12 +0000 Subject: [PATCH] correct shadow color svn path=/trunk/KDE/kdelibs/; revision=935565 --- widgets/iconwidget.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/widgets/iconwidget.cpp b/widgets/iconwidget.cpp index 1e1a025c7..13a6f739d 100644 --- a/widgets/iconwidget.cpp +++ b/widgets/iconwidget.cpp @@ -85,7 +85,11 @@ IconWidgetPrivate::~IconWidgetPrivate() void IconWidgetPrivate::readColors() { 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()