some fixes for linux

This commit is contained in:
fourtf
2018-04-13 22:50:19 +02:00
parent 79b4511104
commit 2c5d05dfa1
3 changed files with 14 additions and 4 deletions
+7 -1
View File
@@ -168,7 +168,6 @@ void BaseWindow::themeRefreshEvent()
{
if (this->enableCustomFrame) {
QPalette palette;
// palette.setColor(QPalette::Background, this->themeManager.window.background);
palette.setColor(QPalette::Background, QColor(0, 0, 0, 0));
palette.setColor(QPalette::Foreground, this->themeManager.window.text);
this->setPalette(palette);
@@ -177,6 +176,11 @@ void BaseWindow::themeRefreshEvent()
button->setMouseEffectColor(this->themeManager.window.text);
}
}
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,
@@ -216,6 +220,8 @@ void BaseWindow::changeEvent(QEvent *)
: TitleBarButton::Maximize);
}
#endif
this->update();
}
void BaseWindow::leaveEvent(QEvent *)