Fixes #266 graphical gliches after changing theme color

This commit is contained in:
fourtf 2018-02-05 21:33:22 +01:00
parent c0247d27e8
commit 9b1300212a

View file

@ -157,6 +157,7 @@ bool BaseWindow::hasCustomWindowFrame()
void BaseWindow::themeRefreshEvent()
{
if (this->enableCustomFrame) {
QPalette palette;
palette.setColor(QPalette::Background, this->themeManager.windowBg);
palette.setColor(QPalette::Foreground, this->themeManager.windowText);
@ -165,6 +166,7 @@ void BaseWindow::themeRefreshEvent()
for (RippleEffectButton *button : this->buttons) {
button->setMouseEffectColor(this->themeManager.windowText);
}
}
}
void BaseWindow::addTitleBarButton(const TitleBarButton::Style &style,