From 043823120f1f7439d0b93ec06912ba4e742e635b Mon Sep 17 00:00:00 2001 From: fourtf Date: Fri, 13 Apr 2018 23:41:52 +0200 Subject: [PATCH] some fixes for windows --- src/widgets/basewindow.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/widgets/basewindow.cpp b/src/widgets/basewindow.cpp index 6058a85f2..7ece15f7a 100644 --- a/src/widgets/basewindow.cpp +++ b/src/widgets/basewindow.cpp @@ -175,12 +175,12 @@ void BaseWindow::themeRefreshEvent() for (RippleEffectButton *button : this->buttons) { 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, @@ -221,7 +221,9 @@ void BaseWindow::changeEvent(QEvent *) } #endif +#ifndef Q_OS_WIN this->update(); +#endif } void BaseWindow::leaveEvent(QEvent *)