Skip to content
Permalink
Browse files

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

  • Loading branch information
nirvn authored and nyalldawson committed May 9, 2019
1 parent ed49b57 commit b054222bcd2e7553f4f9e6b193f872efe4fa302b
@@ -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 b054222

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