微调QSS支持被关闭的按键

This commit is contained in:
RigoLigoRLC
2021-09-07 00:09:54 +08:00
parent f96aa8150a
commit 91292f6550
5 changed files with 104 additions and 70 deletions

View File

@@ -7,12 +7,15 @@
LCTL1 : Light controls gradient light
LCTL2 : Light controls gradient dark
LCTL3 : Light controls gradient darker
LCTLD : Light controls disabled background
DCTL1 : Dark controls gradient light
DCTL2: Dark controls gradient dark
DCTLD: Dark controls disabled background
TXACC: Text on Selection/Activation
TXGBG: Text on Global background
TXCBG: Text on controls background
TXL: Text slightly lighter
TXD: Text disabled
GLS: Glossy edge on controls
SHD: Shades edge on controls
*/
@@ -62,13 +65,19 @@ QPushButton
background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 LCTL1, stop:1 LCTL2)
}
QPushButton::pressed
QPushButton:pressed
{
border-top-color: GLS;
border-bottom-color: SHD;
background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 LCTL3, stop:1 LCTL1)
}
QPushButton:disabled
{
background-color: LCTLD;
color: TXD;
}
QScrollBar::handle
{
border: 0px;