restore hint-apply-color-scheme support
make hint-apply-color-scheme work (kiconeffect based coloring), and make sure the kcolorschemes are reloaded when app palette changes and the theme follows system colors BUG:343389 Change-Id: I0a7a7eb0f89ed0948e618f1d608521f235aa1959
This commit is contained in:
parent
8fb6f677dd
commit
534733558c
@ -669,6 +669,17 @@ void SvgPrivate::colorsChanged()
|
||||
|
||||
eraseRenderer();
|
||||
//qDebug() << "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);
|
||||
}
|
||||
|
||||
emit q->repaintNeeded();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user