Skip to content

Commit

Permalink
UI Nits: Qt5 Toolbar color when inactive
Browse files Browse the repository at this point in the history
  • Loading branch information
liversedge committed Jan 7, 2014
1 parent 4474e18 commit d00ac93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/MainWindow.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit d00ac93

Please sign in to comment.