mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-02-03 09:44:24 -05:00
Adding various checkable options
Added support for Tri-State QCheckBox, Checkable QGroupBox, Checkable QMenu indicators.
This commit is contained in:
parent
68c9e31777
commit
963a4bcf8b
BIN
qdarkstyle/rc/checkbox_indeterminate.png
Normal file
BIN
qdarkstyle/rc/checkbox_indeterminate.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
@ -20,6 +20,7 @@
|
||||
<file>rc/left_arrow_disabled.png</file>
|
||||
<file>rc/Hsepartoolbar.png</file>
|
||||
<file>rc/checkbox.png</file>
|
||||
<file>rc/checkbox_indeterminate.png</file>
|
||||
<file>rc/branch_open.png</file>
|
||||
<file>rc/Vsepartoolbar.png</file>
|
||||
<file>rc/down_arrow_disabled.png</file>
|
||||
|
@ -397,10 +397,13 @@ QCheckBox, QRadioButton
|
||||
outline: none;
|
||||
}
|
||||
|
||||
QCheckBox::indicator{
|
||||
QCheckBox::indicator, QGroupBox::indicator, QMenu::indicator:non-exclusive{
|
||||
color: #b1b1b1;
|
||||
background-color: #302F2F;
|
||||
border: 1px solid silver;
|
||||
}
|
||||
|
||||
QCheckBox::indicator, QMenu::indicator:non-exclusive{
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
}
|
||||
@ -422,7 +425,7 @@ QRadioButton::indicator:hover, QCheckBox::indicator:hover
|
||||
border: 1px solid #78879b;
|
||||
}
|
||||
|
||||
QCheckBox::indicator:checked
|
||||
QCheckBox::indicator:checked, QGroupBox::indicator:checked, QMenu::indicator:non-exclusive:checked
|
||||
{
|
||||
image:url(:/qss_icons/rc/checkbox.png);
|
||||
}
|
||||
@ -432,6 +435,10 @@ QCheckBox::indicator:disabled, QRadioButton::indicator:disabled
|
||||
border: 1px solid #444;
|
||||
}
|
||||
|
||||
QCheckBox::indicator:indeterminate {
|
||||
image: url(:/qss_icons/rc/checkbox_indeterminate.png);
|
||||
}
|
||||
|
||||
QFrame
|
||||
{
|
||||
border-radius: 3px;
|
||||
@ -896,7 +903,7 @@ QToolButton {
|
||||
margin: 3px;
|
||||
}
|
||||
|
||||
QToolButton:pressed, QToolButton::menu-button:pressed {
|
||||
QToolButton:pressed, QToolButton::menu-button:pressed, QToolButton:checked, QToolButton::menu-button:checked {
|
||||
background-color: #4A4949;
|
||||
border: 1px solid silver;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user