Improve style of QCheckBox and QRadioButton

This commit is contained in:
Roland Winklmeier
2016-08-16 18:53:00 +02:00
committed by Mathew Sutcliffe
parent 7f9c99ca7a
commit 1ff06a1174

View File

@@ -11,6 +11,17 @@ Used dynamic properties
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 */
QMainWindow {
background-image: url(:/textures/icons/textures/texture-outer.jpg);
@@ -362,6 +373,23 @@ BlackGui--Components--CMarginsInput {
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 {
border: 1px solid green;
border-radius: 5px;