correct shadow color
svn path=/trunk/KDE/kdelibs/; revision=935565
This commit is contained in:
parent
d43926b2ca
commit
a219e97dae
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user