Skip to content
Permalink
Browse files

[ui] Fix missing disabled state for {check/radio/group}box

  • Loading branch information
nirvn committed May 9, 2019
1 parent 69c8915 commit 4bc832573722c5fa55be3102cfda54678a074acf
@@ -0,0 +1 @@
<svg:svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" id="Layer_1" x="0" y="0" width="16" height="16" viewBox="0 0 16 16" xml:space="preserve" sodipodi:docname="qcheckbox-checked-disabled.svg" inkscape:version="0.92.4 (5da689c313, 2019-01-14)"><svg:metadata id="metadata9"><rdf:RDF><cc:Work><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/><dc:title/></cc:Work></rdf:RDF></svg:metadata><svg:defs id="defs7"/><sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="1866" inkscape:window-height="1016" id="namedview5" showgrid="true" inkscape:zoom="20.86" inkscape:cx="1.196" inkscape:cy="4.975" inkscape:window-x="54" inkscape:window-y="27" inkscape:window-maximized="1" inkscape:current-layer="Layer_1"><inkscape:grid type="xygrid" id="grid823"/></sodipodi:namedview><script/><svg:rect id="rect819" width="15" height="15" x=".5" y=".5" rx="4.078" ry="3.933" opacity="1" fill="none" fill-opacity="1" stroke="#373737" stroke-width="1" stroke-linecap="round" stroke-linejoin="miter" stroke-miterlimit="4" stroke-dasharray="none" stroke-dashoffset="0" stroke-opacity="1"/><svg:path d="M 3.0847458,8.9152542 6,12 12.596129,3" id="path821" inkscape:connector-curvature="0" sodipodi:nodetypes="ccc" fill="none" stroke="#9a9a9a" stroke-width="2" stroke-linecap="round" stroke-linejoin="miter" stroke-miterlimit="4" stroke-dasharray="none" stroke-opacity="1"/></svg:svg>
@@ -0,0 +1 @@
<svg:svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" id="Layer_1" x="0" y="0" width="16" height="16" viewBox="0 0 16 16" xml:space="preserve" sodipodi:docname="qcheckbox-unchecked-disabled.svg" inkscape:version="0.92.4 (5da689c313, 2019-01-14)"><svg:metadata id="metadata9"><rdf:RDF><cc:Work><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/><dc:title/></cc:Work></rdf:RDF></svg:metadata><svg:defs id="defs7"/><sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="1866" inkscape:window-height="1016" id="namedview5" showgrid="true" inkscape:zoom="7.375" inkscape:cx="-32.851" inkscape:cy="-3.203" inkscape:window-x="54" inkscape:window-y="27" inkscape:window-maximized="1" inkscape:current-layer="Layer_1"><inkscape:grid type="xygrid" id="grid823"/></sodipodi:namedview><script/><svg:rect id="rect819" width="15" height="15" x=".5" y=".5" rx="4.078" ry="3.933" opacity="1" fill="none" fill-opacity="1" stroke="#373737" stroke-width="1" stroke-linecap="round" stroke-linejoin="miter" stroke-miterlimit="4" stroke-dasharray="none" stroke-dashoffset="0" stroke-opacity="1"/></svg:svg>
@@ -0,0 +1 @@
<svg:svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" id="Layer_1" x="0" y="0" width="16" height="16" viewBox="0 0 16 16" xml:space="preserve" sodipodi:docname="qradiobox-checked-disabled.svg" inkscape:version="0.92.4 (5da689c313, 2019-01-14)"><svg:metadata id="metadata9"><rdf:RDF><cc:Work><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/><dc:title/></cc:Work></rdf:RDF></svg:metadata><svg:defs id="defs7"/><sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="1866" inkscape:window-height="1016" id="namedview5" showgrid="true" inkscape:zoom="20.862" inkscape:cx="12.823" inkscape:cy="8.465" inkscape:window-x="54" inkscape:window-y="27" inkscape:window-maximized="1" inkscape:current-layer="Layer_1"><inkscape:grid type="xygrid" id="grid823"/></sodipodi:namedview><script/><svg:circle style="font-variant-east_asian:normal" id="path814" cx="8" cy="8" r="7.5" opacity="1" fill="none" fill-opacity="1" stroke="#373737" stroke-width="1" stroke-linecap="round" stroke-linejoin="miter" stroke-miterlimit="4" stroke-dasharray="none" stroke-dashoffset="0" stroke-opacity="1" vector-effect="none"/><svg:circle id="path814-7" cx="8" cy="8" r="3.5" stroke-miterlimit="4" opacity="1" vector-effect="none" fill="#9a9a9a" fill-opacity="1" stroke="#9a9a9a" stroke-width="1" stroke-linecap="round" stroke-linejoin="miter" stroke-dasharray="none" stroke-dashoffset="0" stroke-opacity="1"/></svg:svg>
@@ -0,0 +1 @@
<svg:svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" id="Layer_1" x="0" y="0" width="16" height="16" viewBox="0 0 16 16" xml:space="preserve" sodipodi:docname="qradiobox-unchecked-disabled.svg" inkscape:version="0.92.4 (5da689c313, 2019-01-14)"><svg:metadata id="metadata9"><rdf:RDF><cc:Work><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/><dc:title/></cc:Work></rdf:RDF></svg:metadata><svg:defs id="defs7"/><sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="1866" inkscape:window-height="1016" id="namedview5" showgrid="true" inkscape:zoom="20.86" inkscape:cx="16.208" inkscape:cy="9.131" inkscape:window-x="54" inkscape:window-y="27" inkscape:window-maximized="1" inkscape:current-layer="Layer_1"><inkscape:grid type="xygrid" id="grid823"/></sodipodi:namedview><script/><svg:circle id="path814" cx="8" cy="8" r="7.5" opacity="1" fill="none" fill-opacity="1" stroke="#373737" stroke-width="1" stroke-linecap="round" stroke-linejoin="miter" stroke-miterlimit="4" stroke-dasharray="none" stroke-dashoffset="0" stroke-opacity="1"/></svg:svg>
@@ -521,7 +521,11 @@ QGroupBox {
}

QGroupBox::title {
color: @text;
color: @textlight;
}

QGroupBox::title:disabled {
color: @itemalternativebackground;
}

QGroupBox::indicator {
@@ -534,45 +538,73 @@ QGroupBox::indicator:unchecked {
image: url(@theme_path/icons/qcheckbox-unchecked.svg);
}

QGroupBox::indicator:unchecked:disabled {
image: url(@theme_path/icons/qcheckbox-unchecked-disabled.svg);
}

QGroupBox::indicator:checked {
border: 1px solid @background;
image: url(@theme_path/icons/qcheckbox-checked.svg);
}

QGroupBox::indicator:checked:disabled {
image: url(@theme_path/icons/qcheckbox-checked-disabled.svg);
}

/* ==================================================================================== */
/* RADIO BUTTON */
/* ==================================================================================== */

QRadioButton::indicator:unchecked {
QRadioButton::indicator
{
border: 1px solid @background;
image: url(@theme_path/icons/qradiobox-unchecked.svg);
width:0.8em;
height:0.8em;
}

QRadioButton::indicator:unchecked
{
image: url(@theme_path/icons/qradiobox-unchecked.svg);
}

QRadioButton::indicator:unchecked:disabled
{
image: url(@theme_path/icons/qradiobox-unchecked-disabled.svg);
}

QRadioButton::indicator:checked {
border: 1px solid @background;
image: url(@theme_path/icons/qradiobox-checked.svg);
width:0.8em;
height:0.8em;
}

QRadioButton::indicator:checked:disabled {
image: url(@theme_path/icons/qradiobox-checked-disabled.svg);
}

/* ==================================================================================== */
/* CHECKBOX */
/* ==================================================================================== */

QCheckBox::indicator:unchecked {
QCheckBox::indicator
{
border: 1px solid @background;
image: url(@theme_path/icons/qcheckbox-unchecked.svg);
width:0.8em;
height:0.8em;
}

QCheckBox::indicator:unchecked {
image: url(@theme_path/icons/qcheckbox-unchecked.svg);
}

QCheckBox::indicator:unchecked:disabled {
image: url(@theme_path/icons/qcheckbox-unchecked-disabled.svg);
}

QCheckBox::indicator:checked {
border: 1px solid @background;
image: url(@theme_path/icons/qcheckbox-checked.svg);
width:0.8em;
height:0.8em;
}

QCheckBox::indicator:checked:disabled {
image: url(@theme_path/icons/qcheckbox-checked-disabled.svg);
}

/* ==================================================================================== */
@@ -0,0 +1 @@
<svg:svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" id="Layer_1" x="0" y="0" width="16" height="16" viewBox="0 0 16 16" xml:space="preserve" sodipodi:docname="qcheckbox-checked-disabled.svg" inkscape:version="0.92.4 (5da689c313, 2019-01-14)"><svg:metadata id="metadata9"><rdf:RDF><cc:Work><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/><dc:title/></cc:Work></rdf:RDF></svg:metadata><svg:defs id="defs7"/><sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="1866" inkscape:window-height="1016" id="namedview5" showgrid="true" inkscape:zoom="29.5" inkscape:cx="9.431" inkscape:cy="2.31" inkscape:window-x="54" inkscape:window-y="27" inkscape:window-maximized="1" inkscape:current-layer="Layer_1"><inkscape:grid type="xygrid" id="grid823"/></sodipodi:namedview><script/><svg:rect id="rect819" width="15" height="15" x=".5" y=".5" opacity="1" fill="#525252" fill-opacity="1" stroke="#525252" stroke-width="1" stroke-linecap="round" stroke-linejoin="miter" stroke-miterlimit="4" stroke-dasharray="none" stroke-dashoffset="0" stroke-opacity="1"/></svg:svg>
@@ -0,0 +1 @@
<svg:svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" id="Layer_1" x="0" y="0" width="16" height="16" viewBox="0 0 16 16" xml:space="preserve" sodipodi:docname="qcheckbox-unchecked-disabled.svg" inkscape:version="0.92.4 (5da689c313, 2019-01-14)"><svg:metadata id="metadata9"><rdf:RDF><cc:Work><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/><dc:title/></cc:Work></rdf:RDF></svg:metadata><svg:defs id="defs7"/><sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="1866" inkscape:window-height="1016" id="namedview5" showgrid="true" inkscape:zoom="29.5" inkscape:cx="10.621" inkscape:cy="11.524" inkscape:window-x="54" inkscape:window-y="27" inkscape:window-maximized="1" inkscape:current-layer="Layer_1"><inkscape:grid type="xygrid" id="grid823"/></sodipodi:namedview><script/><svg:rect id="rect819" width="15" height="15" x=".5" y=".5" opacity="1" fill="none" fill-opacity="1" stroke="#525252" stroke-width="1" stroke-linecap="round" stroke-linejoin="miter" stroke-miterlimit="4" stroke-dasharray="none" stroke-dashoffset="0" stroke-opacity="1"/></svg:svg>
@@ -0,0 +1 @@
<svg:svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" id="Layer_1" x="0" y="0" width="16" height="16" viewBox="0 0 16 16" xml:space="preserve" sodipodi:docname="qradiobox-checked-disabled.svg" inkscape:version="0.92.4 (5da689c313, 2019-01-14)"><svg:metadata id="metadata9"><rdf:RDF><cc:Work><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/><dc:title/></cc:Work></rdf:RDF></svg:metadata><svg:defs id="defs7"/><sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="1866" inkscape:window-height="1016" id="namedview5" showgrid="true" inkscape:zoom="41.725" inkscape:cx="4.272" inkscape:cy="7.754" inkscape:window-x="54" inkscape:window-y="27" inkscape:window-maximized="1" inkscape:current-layer="Layer_1"><inkscape:grid type="xygrid" id="grid823"/></sodipodi:namedview><script/><svg:circle id="path814" cx="8" cy="8" stroke-miterlimit="4" r="8" opacity="1" vector-effect="none" fill="#525252" fill-opacity="1" stroke="none" stroke-width="1" stroke-linecap="round" stroke-linejoin="miter" stroke-dasharray="none" stroke-dashoffset="0" stroke-opacity="1"/></svg:svg>
@@ -0,0 +1 @@
<svg:svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" id="Layer_1" x="0" y="0" width="16" height="16" viewBox="0 0 16 16" xml:space="preserve" sodipodi:docname="qradiobox-unchecked-disabled.svg" inkscape:version="0.92.4 (5da689c313, 2019-01-14)"><svg:metadata id="metadata9"><rdf:RDF><cc:Work><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/><dc:title/></cc:Work></rdf:RDF></svg:metadata><svg:defs id="defs7"/><sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="1866" inkscape:window-height="1016" id="namedview5" showgrid="true" inkscape:zoom="41.725" inkscape:cx="4.236" inkscape:cy="7.838" inkscape:window-x="54" inkscape:window-y="27" inkscape:window-maximized="1" inkscape:current-layer="Layer_1"><inkscape:grid type="xygrid" id="grid823"/></sodipodi:namedview><script/><svg:circle id="path814" cx="8" cy="8" stroke-miterlimit="4" r="7.5" opacity="1" vector-effect="none" fill="none" fill-opacity="1" stroke="#525252" stroke-width="1" stroke-linecap="round" stroke-linejoin="miter" stroke-dasharray="none" stroke-dashoffset="0" stroke-opacity="1"/></svg:svg>
@@ -534,6 +534,10 @@ QGroupBox::title {
color: @textlight;
}

QGroupBox::title:disabled {
color: @itemdarkbackground;
}

QGroupBox::indicator {
width: 0.9em;
height: 0.9em;
@@ -544,45 +548,73 @@ QGroupBox::indicator:unchecked {
image: url(@theme_path/icons/qcheckbox-unchecked.svg);
}

QGroupBox::indicator:unchecked:disabled {
image: url(@theme_path/icons/qcheckbox-unchecked-disabled.svg);
}

QGroupBox::indicator:checked {
border: 1px solid @background;
image: url(@theme_path/icons/qcheckbox-checked.svg);
}

QGroupBox::indicator:checked:disabled {
image: url(@theme_path/icons/qcheckbox-checked-disabled.svg);
}

/* ==================================================================================== */
/* RADIO BUTTON */
/* ==================================================================================== */

QRadioButton::indicator:unchecked {
QRadioButton::indicator
{
border: 1px solid @background;
image: url(@theme_path/icons/qradiobox-unchecked.svg);
width:0.8em;
height:0.8em;
}

QRadioButton::indicator:unchecked
{
image: url(@theme_path/icons/qradiobox-unchecked.svg);
}

QRadioButton::indicator:unchecked:disabled
{
image: url(@theme_path/icons/qradiobox-unchecked-disabled.svg);
}

QRadioButton::indicator:checked {
border: 1px solid @background;
image: url(@theme_path/icons/qradiobox-checked.svg);
width:0.8em;
height:0.8em;
}

QRadioButton::indicator:checked:disabled {
image: url(@theme_path/icons/qradiobox-checked-disabled.svg);
}

/* ==================================================================================== */
/* CHECKBOX */
/* ==================================================================================== */

QCheckBox::indicator:unchecked {
QCheckBox::indicator
{
border: 1px solid @background;
image: url(@theme_path/icons/qcheckbox-unchecked.svg);
width:0.8em;
height:0.8em;
}

QCheckBox::indicator:unchecked {
image: url(@theme_path/icons/qcheckbox-unchecked.svg);
}

QCheckBox::indicator:unchecked:disabled {
image: url(@theme_path/icons/qcheckbox-unchecked-disabled.svg);
}

QCheckBox::indicator:checked {
border: 1px solid @background;
image: url(@theme_path/icons/qcheckbox-checked.svg);
width:0.8em;
height:0.8em;
}

QCheckBox::indicator:checked:disabled {
image: url(@theme_path/icons/qcheckbox-checked-disabled.svg);
}

/* ==================================================================================== */

0 comments on commit 4bc8325

Please sign in to comment.
You can’t perform that action at this time.