Fixes #266 graphical gliches after changing theme color
This commit is contained in:
@@ -157,13 +157,15 @@ bool BaseWindow::hasCustomWindowFrame()
|
|||||||
|
|
||||||
void BaseWindow::themeRefreshEvent()
|
void BaseWindow::themeRefreshEvent()
|
||||||
{
|
{
|
||||||
QPalette palette;
|
if (this->enableCustomFrame) {
|
||||||
palette.setColor(QPalette::Background, this->themeManager.windowBg);
|
QPalette palette;
|
||||||
palette.setColor(QPalette::Foreground, this->themeManager.windowText);
|
palette.setColor(QPalette::Background, this->themeManager.windowBg);
|
||||||
this->setPalette(palette);
|
palette.setColor(QPalette::Foreground, this->themeManager.windowText);
|
||||||
|
this->setPalette(palette);
|
||||||
|
|
||||||
for (RippleEffectButton *button : this->buttons) {
|
for (RippleEffectButton *button : this->buttons) {
|
||||||
button->setMouseEffectColor(this->themeManager.windowText);
|
button->setMouseEffectColor(this->themeManager.windowText);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user