Fixes #266 graphical gliches after changing theme color
This commit is contained in:
@@ -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);
|
||||
@@ -166,6 +167,7 @@ void BaseWindow::themeRefreshEvent()
|
||||
button->setMouseEffectColor(this->themeManager.windowText);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void BaseWindow::addTitleBarButton(const TitleBarButton::Style &style,
|
||||
std::function<void()> onClicked)
|
||||
|
||||
Reference in New Issue
Block a user