Skip to content

Commit add1f96

Browse files
committedJan 12, 2019
[themes] Add pressed state for tool/push buttons in Night Mapping
1 parent ee11034 commit add1f96

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed
 

‎resources/themes/Night Mapping/style.qss

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ QToolButton::hover, QToolButton::menu-button::hover
173173
border-color: #1e1e1e;
174174
border-style: solid;
175175
border-radius: 0px;
176-
background-color: none;
176+
background-color: transparent;
177177
}
178178
QToolButton:checked
179179
{
@@ -191,6 +191,14 @@ QToolBar QToolButton, QToolButton::menu-button
191191
background-color: none;
192192
}
193193

194+
QPushButton:hover, QToolButton:hover {
195+
background-color: @itemdarkbackground;
196+
}
197+
198+
QPushButton:pressed, QToolButton:pressed {
199+
background-color: @darkalternativegradient;
200+
}
201+
194202
/* ==================================================================================== */
195203
/* COMBO BOX */
196204
/* ==================================================================================== */
@@ -206,8 +214,8 @@ QComboBox {
206214
}
207215

208216

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

213221
QComboBox:on {
@@ -696,6 +704,11 @@ QgsColorButton, QgsColorRampButton, QgsSymbolButton, QgsFontButton {
696704
color:@text;
697705
}
698706

707+
QgsColorButton:hover, QgsColorRampButton:hover, QgsSymbolButton:hover, QgsFontButton:hover {
708+
background-color: @darkalternativegradient;
709+
color:@itembackground;
710+
}
711+
699712
QgsMessageBar QLabel, QgsMessageBar QTextEdit, QMessageBar QToolButton, QMessageBar QToolButton::menu-button {
700713
background: transparent;
701714
border: none;

‎resources/themes/Night Mapping/variables.qss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
@itemalternativebackground: #9a9a9a
44
@itemdarkbackground: #535353
55
@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)
6+
@darkalternativegradient: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #565656,stop: 1 #464646);
67
@gradient: QLinearGradient(x1:0, y1:0, x2:1, y2:1, stop:0 #b4b4b4, stop:1 #8f8f8f)
78
@textlight: #ddd
89
@text: #aaa

0 commit comments

Comments
 (0)
Please sign in to comment.