Skip to content

Commit

Permalink
[themes] Add pressed state for tool/push buttons in Night Mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jan 12, 2019
1 parent 63156db commit 5cf8798
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
19 changes: 16 additions & 3 deletions resources/themes/Night Mapping/style.qss
Expand Up @@ -173,7 +173,7 @@ QToolButton::hover, QToolButton::menu-button::hover
border-color: #1e1e1e;
border-style: solid;
border-radius: 0px;
background-color: none;
background-color: transparent;
}
QToolButton:checked
{
Expand All @@ -191,6 +191,14 @@ QToolBar QToolButton, QToolButton::menu-button
background-color: none;
}

QPushButton:hover, QToolButton:hover {
background-color: @itemdarkbackground;
}

QPushButton:pressed, QToolButton:pressed {
background-color: @darkalternativegradient;
}

/* ==================================================================================== */
/* COMBO BOX */
/* ==================================================================================== */
Expand All @@ -206,8 +214,8 @@ QComboBox {
}


QComboBox:hover,QPushButton:hover,QToolButton:hover,QAbstractSpinBox:hover {
background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #565656,stop: 1 #464646);
QComboBox:hover, QAbstractSpinBox:hover {
background-color: @darkalternativegradient;
}

QComboBox:on {
Expand Down Expand Up @@ -696,6 +704,11 @@ QgsColorButton, QgsColorRampButton, QgsSymbolButton, QgsFontButton {
color:@text;
}

QgsColorButton:hover, QgsColorRampButton:hover, QgsSymbolButton:hover, QgsFontButton:hover {
background-color: @darkalternativegradient;
color:@itembackground;
}

QgsMessageBar QLabel, QgsMessageBar QTextEdit, QMessageBar QToolButton, QMessageBar QToolButton::menu-button {
background: transparent;
border: none;
Expand Down
1 change: 1 addition & 0 deletions resources/themes/Night Mapping/variables.qss
Expand Up @@ -3,6 +3,7 @@
@itemalternativebackground: #9a9a9a
@itemdarkbackground: #535353
@darkgradient: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #565656, stop: 0.1 #525252, stop: 0.5 #4e4e4e, stop: 0.9 #4a4a4a, stop: 1 #464646)
@darkalternativegradient: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #565656,stop: 1 #464646);
@gradient: QLinearGradient(x1:0, y1:0, x2:1, y2:1, stop:0 #b4b4b4, stop:1 #8f8f8f)
@textlight: #ddd
@text: #aaa
Expand Down

0 comments on commit 5cf8798

Please sign in to comment.