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

This commit is contained in:
Mathieu Pellerin 2019-01-12 15:57:22 +07:00
parent ee110345f6
commit add1f96fcc
2 changed files with 17 additions and 3 deletions

View File

@ -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;

View File

@ -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