Skip to content
Permalink
Browse files

[themes] Add pressed state for tool/push buttons in Night Mapping

  • Loading branch information
nirvn committed Jan 12, 2019
1 parent 63156db commit 5cf879819d6e755d3fc3abd31468c6e9cf2de117
Showing with 17 additions and 3 deletions.
  1. +16 −3 resources/themes/Night Mapping/style.qss
  2. +1 −0 resources/themes/Night Mapping/variables.qss
@@ -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
{
@@ -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 */
/* ==================================================================================== */
@@ -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 {
@@ -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;
@@ -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

0 comments on commit 5cf8798

Please sign in to comment.
You can’t perform that action at this time.