Minor theme fixes

* Support mouse hover color change for QPushButtons.
* Fix #5040 - don't enforce standard palette when in classic theme mode
This commit is contained in:
Jonathan White
2020-07-26 17:02:02 -04:00
parent 004f5d407f
commit a88fe61a7b
4 changed files with 31 additions and 12 deletions

View File

@@ -3,6 +3,11 @@ QPushButton:default {
color: palette(highlighted-text);
}
/* Note: default button hover is defined in the respective theme style */
QPushButton:!default:hover {
background: palette(mid);
}
QSpinBox {
min-width: 90px;
}

View File

@@ -8,6 +8,16 @@ EntryPreviewWidget QLineEdit:disabled, EntryPreviewWidget QTextEdit:disabled {
background-color: #424242;
}
QPushButton:!default:hover {
/* Using slightly darker shade from palette(button) */
background: #252528;
}
QPushButton:default:hover {
/* Using slightly lighter shade from palette(highlight) */
background: #2E582E;
}
QToolTip {
color: #BFBFBF;
background-color: #2D532D;

View File

@@ -8,11 +8,16 @@ EntryPreviewWidget QLineEdit:disabled, EntryPreviewWidget QTextEdit:disabled {
background-color: #EDEDED;
}
QGroupBox::title {
color: #4B7B19;
QPushButton:default:hover {
/* Using slightly lighter shade from palette(highlight) */
background: #568821;
}
QToolTip {
color: #F9F9F9;
background-color: #4D7F1A;
}
QGroupBox::title {
color: #4B7B19;
}