diff --git a/plugin/kquickstyleitem.cpp b/plugin/kquickstyleitem.cpp --- a/plugin/kquickstyleitem.cpp +++ b/plugin/kquickstyleitem.cpp @@ -164,9 +164,10 @@ if (!m_theme) { m_theme = static_cast(qmlAttachedPropertiesObject(this, true)); Q_ASSERT(m_theme); - m_theme->setInherit(true); connect(m_theme, &Kirigami::PlatformTheme::colorsChanged, this, [this]() { + //we need to reset the palette event if Qt::AA_SetPalette attribute has been set + m_styleoption->palette = m_theme->palette(); updateItem(); }); } @@ -706,11 +707,7 @@ if (QCoreApplication::testAttribute(Qt::AA_SetPalette)) return; - //m_styleoption->palette = QApplication::palette(classNameForItem()); - //m_theme->setColorSet(Kirigami::PlatformTheme::Complementary); m_styleoption->palette = m_theme->palette(); - qWarning()<<"BOMBOLO"<palette(); - // m_styleoption->palette.setColor(QPalette::WindowText, m_theme->textColor()); } /*