Skip to content
Permalink
Browse files

[themes] Add pressed state for tool/push buttons in Blend of Gray

  • Loading branch information
nirvn committed Jan 12, 2019
1 parent 3aae40a commit ee110345f69c8d8cdafd245f772dfb6cc95e6a7d
Showing with 19 additions and 4 deletions.
  1. +18 −4 resources/themes/Blend of Gray/style.qss
  2. +1 −0 resources/themes/Blend of Gray/variables.qss
@@ -148,6 +148,7 @@ QToolButton
background-color:@itembackground;
color:@text;
}

QToolButton[popupMode="1"]
{
padding-right: 0.9em;
@@ -159,13 +160,13 @@ QToolButton::menu-button {
border-radius: 0.2em;
background:@itemdarkbackground;
}
QToolButton::hover, QToolButton::menu-button::hover
QToolButton:hover, QToolButton::menu-button:hover
{
border-width: 1px;
border-color: #1e1e1e;
border-style: solid;
border-radius: 0.2em;
background-color: none;
background-color: transparent;
}
QToolButton:checked
{
@@ -183,6 +184,14 @@ QToolBar QToolButton, QToolButton::menu-button
background-color: none;
}

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

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

/* ==================================================================================== */
/* COMBO BOX */
/* ==================================================================================== */
@@ -198,8 +207,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 {
@@ -685,6 +694,11 @@ QgsColorButton, QgsColorRampButton, QgsSymbolButton, QgsFontButton {
color:@itembackground;
}

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

QgsMessageBar QLabel, QgsMessageBar QTextEdit, QMessageBar QToolButton {
background: transparent;
border: none;
@@ -3,6 +3,7 @@
@itemalternativebackground: #9a9a9a;
@itemdarkbackground: #373737
@darkgradient: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #535353, stop: 1 #373737)
@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 #b2b2b2, stop:1 #8f8f8f)
@text: #0e0e0e;
@toggleoff: #373737

0 comments on commit ee11034

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