Skip to content
Permalink
Browse files

[themes] Fix missing default checkbox styling for table and tree views

  • Loading branch information
nirvn authored and nyalldawson committed Jun 4, 2020
1 parent ec36775 commit ccddfec69018b033fe1af98ee006a3814d310d5d
@@ -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-intermediary.svg" inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)"><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="27.783" inkscape:cy="9.211" 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="#b2b2b2" 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,8 H 13" id="path814" inkscape:connector-curvature="0" sodipodi:nodetypes="cc" fill="none" stroke="#373737" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="4" stroke-dasharray="none" stroke-opacity="1"/></svg:svg>
@@ -793,6 +793,22 @@ QTreeView::branch:open:has-children:has-siblings {
image: url(@theme_path/icons/caret-down.svg);
}

QTreeView::indicator
{
border: 1px solid transparent;
width:0.8em;
height:0.8em;
}
QTreeView::indicator:intermediary {
image: url(@theme_path/icons/qcheckbox-intermediary.svg);
}
QTreeView::indicator:checked {
image: url(@theme_path/icons/qcheckbox-checked.svg) !important;
}
QTreeView::indicator:unchecked {
image: url(@theme_path/icons/qcheckbox-unchecked.svg);
}

QgsLayerTreeView::item,
QTreeView#viewGraduated::item,
QTreeView#viewCategories::item,
@@ -831,6 +847,22 @@ QTableView:disabled {
color: @itemalternativebackground;
}

QTableView::indicator
{
border: 1px solid transparent;
width:0.8em;
height:0.8em;
}
QTableView::indicator:intermediary {
image: url(@theme_path/icons/qcheckbox-intermediary.svg);
}
QTableView::indicator:checked {
image: url(@theme_path/icons/qcheckbox-checked.svg) !important;
}
QTableView::indicator:unchecked {
image: url(@theme_path/icons/qcheckbox-unchecked.svg);
}

QTableView QTableCornerButton::section {
background-color: @background;
border: 1px solid @itembackground;
@@ -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" xml:space="preserve" viewBox="0 0 16 16" height="16" width="16" y="0" x="0" id="Layer_1" version="1.1" sodipodi:docname="qcheckbox-intermediary.svg" inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)"><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="namedview6" showgrid="false" inkscape:zoom="5.215" inkscape:cx="58.067" inkscape:cy="-28.707" inkscape:window-x="54" inkscape:window-y="27" inkscape:window-maximized="1" inkscape:current-layer="Layer_1"/><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"/><script/><svg:rect stroke-miterlimit="4" y="0" x="0" height="16" width="16" id="rect819" opacity="1" fill="#0f6e00" fill-opacity="1" stroke="none" stroke-width="1" stroke-linecap="round" stroke-linejoin="miter" stroke-dasharray="none" stroke-dashoffset="0" stroke-opacity="1"/><svg:path d="M 16,0 V 16 H 0 Z" id="rect819-3" inkscape:connector-curvature="0" sodipodi:nodetypes="cccc" opacity="1" fill="#535353" fill-opacity="1" stroke="none" stroke-width="1" stroke-linecap="round" stroke-linejoin="miter" stroke-miterlimit="4" stroke-dasharray="none" stroke-dashoffset="0" stroke-opacity="1"/></svg:svg>
@@ -756,7 +756,6 @@ QAbstractItemView::selected, QListView::selected {
outline: none;
}


/* ==================================================================================== */
/* TREE VIEW */
/* ==================================================================================== */
@@ -797,6 +796,23 @@ QTreeView::branch:open:has-children:has-siblings {
image: url(@theme_path/icons/caret-down.svg);
}

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

QgsLayerTreeView::item,
QTreeView#viewGraduated::item,
QTreeView#viewCategories::item,
@@ -846,6 +862,23 @@ QTableView:disabled {
color: @itemdarkbackground;
}

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

QTableView QTableCornerButton::section {
background-color: @background;
border: 1px solid @itembackground;

0 comments on commit ccddfec

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