Skip to content

Commit

Permalink
[themes] Add pressed state for tool/push buttons in Blend of Gray
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jan 12, 2019
1 parent 3aae40a commit ee11034
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
22 changes: 18 additions & 4 deletions resources/themes/Blend of Gray/style.qss
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ QToolButton
background-color:@itembackground;
color:@text;
}

QToolButton[popupMode="1"]
{
padding-right: 0.9em;
Expand All @@ -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
{
Expand All @@ -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 */
/* ==================================================================================== */
Expand All @@ -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 {
Expand Down Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions resources/themes/Blend of Gray/variables.qss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee11034

Please sign in to comment.