some fixes for windows

This commit is contained in:
fourtf 2018-04-13 23:41:52 +02:00
parent 5f142e8d52
commit 043823120f

View file

@ -175,12 +175,12 @@ void BaseWindow::themeRefreshEvent()
for (RippleEffectButton *button : this->buttons) { for (RippleEffectButton *button : this->buttons) {
button->setMouseEffectColor(this->themeManager.window.text); button->setMouseEffectColor(this->themeManager.window.text);
} }
} else {
QPalette palette;
palette.setColor(QPalette::Background, this->themeManager.window.background);
palette.setColor(QPalette::Foreground, this->themeManager.window.text);
this->setPalette(palette);
} }
QPalette palette;
palette.setColor(QPalette::Background, this->themeManager.window.background);
palette.setColor(QPalette::Foreground, this->themeManager.window.text);
this->setPalette(palette);
} }
void BaseWindow::addTitleBarButton(const TitleBarButton::Style &style, void BaseWindow::addTitleBarButton(const TitleBarButton::Style &style,
@ -221,7 +221,9 @@ void BaseWindow::changeEvent(QEvent *)
} }
#endif #endif
#ifndef Q_OS_WIN
this->update(); this->update();
#endif
} }
void BaseWindow::leaveEvent(QEvent *) void BaseWindow::leaveEvent(QEvent *)