use the Theme::*Color methods. another place we really need Plasma::ThemeColor, apparently.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=766075
This commit is contained in:
parent
dd87a4e936
commit
74a5773d79
|
@ -65,10 +65,9 @@ Icon::Private::Private()
|
||||||
invertLayout(false),
|
invertLayout(false),
|
||||||
drawBg(false)
|
drawBg(false)
|
||||||
{
|
{
|
||||||
textColor = KColorScheme(QPalette::Active, KColorScheme::Window,
|
//FIXME: update with Theme::change()!
|
||||||
Plasma::Theme::self()->colors()).foreground().color();
|
textColor = Plasma::Theme::self()->textColor();
|
||||||
shadowColor = KColorScheme(QPalette::Active, KColorScheme::Window,
|
shadowColor = Plasma::Theme::self()->backgroundColor();
|
||||||
Plasma::Theme::self()->colors()).background().color();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Icon::Private::~Private()
|
Icon::Private::~Private()
|
||||||
|
@ -841,7 +840,9 @@ void Icon::paintWidget(QPainter *painter, const QStyleOptionGraphicsItem *option
|
||||||
d->drawBackground(painter, state);
|
d->drawBackground(painter, state);
|
||||||
|
|
||||||
// draw icon
|
// draw icon
|
||||||
painter->drawPixmap(iconPos, icon);
|
if (!icon.isNull()) {
|
||||||
|
painter->drawPixmap(iconPos, icon);
|
||||||
|
}
|
||||||
|
|
||||||
// Draw corner actions
|
// Draw corner actions
|
||||||
foreach (IconAction *action, d->cornerActions) {
|
foreach (IconAction *action, d->cornerActions) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user