Permalink
Browse files

UI Nits: Qt5 Toolbar color when inactive

  • Loading branch information...
liversedge committed Jan 7, 2014
1 parent 4474e18 commit d00ac93fb23f88b3b6aaf8b9edadaf66336ba9aa
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/MainWindow.cpp
View
@@ -237,7 +237,10 @@ MainWindow::MainWindow(const QDir &home)
head->setFloatable(false);
head->setMovable(false);
head->setStyleSheet(" QToolBar { border: 0px; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #C6C6C6, stop: 1 #A5A5A5 ); } ");
// make the normal toolbar in QT5 have same colors as the tabs and when inactive
// make it the same 'light' colour as the other widgets do.
head->setStyleSheet(" QToolBar:active { border: 0px; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #C6C6C6, stop: 1 #A5A5A5 ); } "
" QToolBar:!active { border: 0px; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #D9D9D9, stop: 1 #D6D6D6 ); } ");
// widgets
QWidget *macAnalButtons = new QWidget(this);
macAnalButtons->setContentsMargins(20,5,20,0);

0 comments on commit d00ac93

Please sign in to comment.