Commit 3014fe6a authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

re-instantiate style on palette changed

CCBUG: 454864
parent 78126c43
Pipeline #189183 passed with stage
in 9 minutes and 12 seconds
......@@ -107,6 +107,22 @@ KateTabBar::KateTabBar(QWidget *parent)
// handle config changes
connect(KateApp::self(), &KateApp::configurationChanged, this, &KateTabBar::readConfig);
// redo the style on palette change to avoid issues with cached wrong colors
// see bug 454864
connect(
qApp,
&QApplication::paletteChanged,
this,
[this] {
// get old style for deletion and replace it with a new instantiated one
auto s = style();
auto tabBarStyle = new KateTabStyle(this);
setStyle(tabBarStyle);
tabBarStyle->setParent(this);
delete s;
},
Qt::QueuedConnection);
}
void KateTabBar::readConfig()
......
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