Add indeterminate and disabled states to checkbox for dark theme

This commit is contained in:
Gaute Lindkvist
2020-09-28 11:07:45 +02:00
parent d9276040f2
commit c1c4c31871
6 changed files with 51 additions and 0 deletions

View File

@@ -205,6 +205,10 @@
<file>themes/dark/arrow-up.svg</file>
<file>themes/dark/checkbox-unchecked-20x20.png</file>
<file>themes/dark/checkbox-checked-20x20.png</file>
<file>themes/dark/checkbox-indeterminate-20x20.png</file>
<file>themes/dark/checkbox-unchecked-disabled-20x20.png</file>
<file>themes/dark/checkbox-checked-disabled-20x20.png</file>
<file>themes/dark/checkbox-indeterminate-disabled-20x20.png</file>
<file>SummaryCase24x24.png</file>
</qresource>
<qresource prefix="/Shader">

View File

@@ -35,6 +35,29 @@ QCheckBox::indicator:checked
background-color: $backgroundColor1;
image: url(:/themes/dark/checkbox-checked-20x20.png);
}
QCheckBox::indicator:indeterminate
{
background-color: $backgroundColor1;
image: url(:/themes/dark/checkbox-indeterminate-20x20.png);
}
QCheckBox::indicator:unchecked:disabled
{
background-color: $backgroundColor1;
image: url(:/themes/dark/checkbox-unchecked-disabled-20x20.png);
}
QCheckBox::indicator:checked:disabled
{
background-color: $backgroundColor1;
image: url(:/themes/dark/checkbox-checked-disabled-20x20.png);
}
QCheckBox::indicator:indeterminate:disabled
{
background-color: $backgroundColor1;
image: url(:/themes/dark/checkbox-indeterminate-disabled-20x20.png);
}
QwtPlot["*"]::grid["*"] {
color: $backgroundColor2;
@@ -175,6 +198,30 @@ QTreeView::indicator:checked
image: url(:/themes/dark/checkbox-checked-20x20.png);
}
QTreeView::indicator:indeterminate
{
background-color: $backgroundColor1;
image: url(:/themes/dark/checkbox-indeterminate-20x20.png);
}
QTreeView::indicator:unchecked:disabled
{
background-color: $backgroundColor1;
image: url(:/themes/dark/checkbox-unchecked-disabled-20x20.png);
}
QTreeView::indicator:checked:disabled
{
background-color: $backgroundColor1;
image: url(:/themes/dark/checkbox-checked-disabled-20x20.png);
}
QTreeView::indicator:indeterminate:disabled
{
background-color: $backgroundColor1;
image: url(:/themes/dark/checkbox-indeterminate-disabled-20x20.png);
}
QDockWidget {
background-color: $mainBackgroundColor;
titlebar-close-icon: url(:/themes/dark/blank.svg);

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB