mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-05 17:55:45 +08:00
Improve style of QCheckBox and QRadioButton
This commit is contained in:
committed by
Mathew Sutcliffe
parent
7f9c99ca7a
commit
1ff06a1174
@@ -11,6 +11,17 @@ Used dynamic properties
|
|||||||
framelessMainWindow (infobar.qss , here)
|
framelessMainWindow (infobar.qss , here)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
QCheckBox::indicator {
|
||||||
|
color: #b1b1b1;
|
||||||
|
border: 1px solid #7f7f7f;
|
||||||
|
width: 15px;
|
||||||
|
height: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QCheckBox::indicator::checked {
|
||||||
|
image: url(:/diagona/icons/diagona/icons/tick.png);
|
||||||
|
}
|
||||||
|
|
||||||
/* Main window */
|
/* Main window */
|
||||||
QMainWindow {
|
QMainWindow {
|
||||||
background-image: url(:/textures/icons/textures/texture-outer.jpg);
|
background-image: url(:/textures/icons/textures/texture-outer.jpg);
|
||||||
@@ -362,6 +373,23 @@ BlackGui--Components--CMarginsInput {
|
|||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QRadioButton::indicator:checked, QRadioButton::indicator:unchecked {
|
||||||
|
color: #b1b1b1;
|
||||||
|
background-color: #000000;
|
||||||
|
border: 1px solid #b1b1b1;
|
||||||
|
border-radius: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QRadioButton::indicator:checked {
|
||||||
|
background-color: qradialgradient(
|
||||||
|
cx: 0.5, cy: 0.5,
|
||||||
|
fx: 0.5, fy: 0.5,
|
||||||
|
radius: 1.0,
|
||||||
|
stop: 0.25 #32cd32,
|
||||||
|
stop: 0.3 #000000
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
QScrollArea {
|
QScrollArea {
|
||||||
border: 1px solid green;
|
border: 1px solid green;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
|||||||
Reference in New Issue
Block a user