diff --git a/src/plasma/private/theme_p.cpp b/src/plasma/private/theme_p.cpp index 943d3af51..98bccabc2 100644 --- a/src/plasma/private/theme_p.cpp +++ b/src/plasma/private/theme_p.cpp @@ -360,7 +360,7 @@ void ThemePrivate::colorsChanged() colorScheme = KColorScheme(QPalette::Active, KColorScheme::Window, colors); buttonColorScheme = KColorScheme(QPalette::Active, KColorScheme::Button, colors); viewColorScheme = KColorScheme(QPalette::Active, KColorScheme::View, colors); - scheduleThemeChangeNotification(PixmapCache); + scheduleThemeChangeNotification(PixmapCache | SvgElementsCache); emit applicationPaletteChange(); } diff --git a/src/plasma/svg.cpp b/src/plasma/svg.cpp index ccd248ad9..6c9c75c26 100644 --- a/src/plasma/svg.cpp +++ b/src/plasma/svg.cpp @@ -672,17 +672,7 @@ void SvgPrivate::colorsChanged() } eraseRenderer(); - //qCDebug(LOG_PLASMA) << "repaint needed from colorsChanged"; - - // in the case the theme follows the desktop settings, refetch the colorschemes - // and discard the svg pixmap cache - if (!theme.data()->d->colors) { - KSharedConfig::openConfig()->reparseConfiguration(); - theme.data()->d->colorScheme = KColorScheme(QPalette::Active, KColorScheme::Window); - theme.data()->d->buttonColorScheme = KColorScheme(QPalette::Active, KColorScheme::Button); - theme.data()->d->viewColorScheme = KColorScheme(QPalette::Active, KColorScheme::View); - theme.data()->d->discardCache(PixmapCache | SvgElementsCache); - } + qCDebug(LOG_PLASMA) << "repaint needed from colorsChanged"; emit q->repaintNeeded(); }