ui: Scrollbar and dock widget separator style

* defined scrollbar style for Windows and Linux
* defined dock widget separator width and color
* some style fixes on linux
This commit is contained in:
Eberhard Graether
2017-11-25 23:06:47 +01:00
parent bfc7a55f70
commit 506bf8ed6f
14 changed files with 126 additions and 48 deletions
+13 -1
View File
@@ -122,7 +122,14 @@ QtMainWindow::QtMainWindow()
QApplication* app = dynamic_cast<QApplication*>(QCoreApplication::instance());
app->installEventFilter(new MouseReleaseFilter(this));
app->setStyleSheet(utility::getStyleSheet(ResourcePaths::getGuiPath().concat(FilePath("main.css"))).c_str());
refreshStyle();
if (utility::getOsType() != OS_MAC)
{
// can only be done once, because resetting the style on the QCoreApplication causes crash
app->setStyleSheet(
utility::getStyleSheet(ResourcePaths::getGuiPath().concat(FilePath("scrollbar.css"))).c_str());
}
m_recentProjectAction = new QAction*[ApplicationSettings::getInstance()->getMaxRecentProjectsCount()];
@@ -370,6 +377,11 @@ void QtMainWindow::setContentEnabled(bool enabled)
}
}
void QtMainWindow::refreshStyle()
{
setStyleSheet(utility::getStyleSheet(ResourcePaths::getGuiPath().concat(FilePath("main.css"))).c_str());
}
void QtMainWindow::keyPressEvent(QKeyEvent* event)
{
switch (event->key())