Commit 8c1f9a67 authored by Devin Lin's avatar Devin Lin 🎨
Browse files

Revert "PlasmaDesktopTheme: Do not compute the colors for invisible items"

This reverts commit 26a5adc2.
parent e5c8b6b6
......@@ -229,7 +229,6 @@ PlasmaDesktopTheme::PlasmaDesktopTheme(QObject *parent)
auto parentItem = qobject_cast<QQuickItem *>(parent);
if (parentItem) {
connect(parentItem, &QQuickItem::enabledChanged, this, &PlasmaDesktopTheme::syncColors);
connect(parentItem, &QQuickItem::visibleChanged, this, &PlasmaDesktopTheme::syncColors);
connect(parentItem, &QQuickItem::windowChanged, this, &PlasmaDesktopTheme::syncWindow);
}
......@@ -297,9 +296,6 @@ void PlasmaDesktopTheme::syncColors()
QPalette::ColorGroup group = (QPalette::ColorGroup)colorGroup();
auto parentItem = qobject_cast<QQuickItem *>(parent());
if (parentItem) {
if (!parentItem->isVisible()) {
return;
}
if (!parentItem->isEnabled()) {
group = QPalette::Disabled;
} else if (m_window && !m_window->isActive() && m_window->isExposed()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment