From af917de5435b59dc3220739bcf59cc2e35a02e6c Mon Sep 17 00:00:00 2001 From: baydam Date: Wed, 13 Apr 2016 18:26:26 +0000 Subject: [PATCH] Fix style issues on some plateforme --- MainWindow.cpp | 11 ++--------- resources/qss/mapmap.qss | 36 +++++++++++++++++++++++------------- 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/MainWindow.cpp b/MainWindow.cpp index fb6a404..60b03f4 100644 --- a/MainWindow.cpp +++ b/MainWindow.cpp @@ -1904,10 +1904,8 @@ void MainWindow::createToolBars() // Add toolbars. addToolBar(Qt::TopToolBarArea, mainToolBar); - // XXX: style hack on Windows -#ifdef WIN32 - mainToolBar->setStyleSheet("border-color: #272a36;"); -#endif + // XXX: style hack + mainToolBar->setStyleSheet("border-bottom: solid 5px #272a36;"); } void MainWindow::createStatusBar() @@ -1939,11 +1937,6 @@ void MainWindow::createStatusBar() statusBar()->addPermanentWidget(sourceZoomLabel, 1); statusBar()->addPermanentWidget(destinationZoomLabel, 1); - // XXX: style hack on Windows -#ifdef WIN32 - statusBar()->setStyleSheet("background: #FFF;"); -#endif - // Update the status bar updateStatusBar(); } diff --git a/resources/qss/mapmap.qss b/resources/qss/mapmap.qss index a26a1c9..e76438f 100644 --- a/resources/qss/mapmap.qss +++ b/resources/qss/mapmap.qss @@ -87,22 +87,32 @@ QWidget#zoom-toolbox { background-color: #272a36; } +QTabWidget::pane { + border: 1px solid #FFF; +} + +QTabWidget::tab-bar { + bottom: 0px; +} + +QStatusBar { + background: #FFF; +} + QStatusBar::item { border: 0px solid black; } -/* - QListView::item:selected:!active { - background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, - stop: 0 #ABAFE5, stop: 1 #8588B2); - } +QSplitter::handle:horizontal { + width: 5px; + background-color: #323541; +} - QListView::item:selected:active { - background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, - stop: 0 #6a6ea9, stop: 1 #888dd9); - } +QSplitter::handle:vertical { + height: 5px; + background-color: #323541; +} - QListView::item:hover { - stop: 0 #FAFBFE, stop: 1 #DCDEF1); - background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, - }*/ +QComboBox QAbstractItemView { + background: #FFF; +}