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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user