Browse Source
Use wx to draw the arrow on the collapsable pane
Use wx to draw the arrow on the collapsable pane
This allows for color changes and scaling of the arrow when the display needs it (e.g. HiDPI displays). Also make the arrow and text respond to if the window is active to mimic native controls. Fixes https://gitlab.com/kicad/code/kicad/issues/60426.0.7
9 changed files with 77 additions and 178 deletions
-
2bitmaps_png/CMakeLists.txt
-
38bitmaps_png/sources/dark/triangle_down.svg
-
38bitmaps_png/sources/dark/triangle_right.svg
-
38bitmaps_png/sources/light/triangle_down.svg
-
38bitmaps_png/sources/light/triangle_right.svg
-
91common/widgets/collapsible_pane.cpp
-
4include/bitmaps/bitmap_info.h
-
2include/bitmaps/bitmaps_list.h
-
4include/widgets/collapsible_pane.h
@ -1,38 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
|||
<!-- Created with Inkscape (http://www.inkscape.org/) --> |
|||
|
|||
<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="http://www.w3.org/2000/svg" |
|||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" |
|||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="16" height="16" viewBox="0 0 4.2333332 4.2333335" version="1.1" id="svg8" inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)" sodipodi:docname="triangle_down.svg"> |
|||
<defs id="defs2" /> |
|||
<sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="89.6" inkscape:cx="6.3261338" inkscape:cy="5.4996444" inkscape:document-units="mm" inkscape:current-layer="layer1" showgrid="true" units="px" fit-margin-top="0" fit-margin-left="0" fit-margin-right="0" fit-margin-bottom="0" showguides="true" inkscape:lockguides="false" inkscape:guide-bbox="true" inkscape:window-width="2560" inkscape:window-height="1370" inkscape:window-x="0" inkscape:window-y="0" inkscape:window-maximized="1"> |
|||
<inkscape:grid type="xygrid" id="grid815" /> |
|||
<sodipodi:guide position="0,2.1166667" orientation="0,1" id="guide4520" inkscape:locked="false" /> |
|||
<sodipodi:guide position="2.1166666,4.2333335" orientation="1,0" id="guide4522" inkscape:locked="false" /> |
|||
</sodipodi:namedview> |
|||
<metadata id="metadata5"> |
|||
<rdf:RDF> |
|||
<cc:Work rdf:about=""> |
|||
<dc:format>image/svg+xml</dc:format> |
|||
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> |
|||
<dc:title></dc:title> |
|||
<cc:license rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" /> |
|||
</cc:Work> |
|||
<cc:License rdf:about="http://creativecommons.org/licenses/by-sa/4.0/"> |
|||
<cc:permits rdf:resource="http://creativecommons.org/ns#Reproduction" /> |
|||
<cc:permits rdf:resource="http://creativecommons.org/ns#Distribution" /> |
|||
<cc:requires rdf:resource="http://creativecommons.org/ns#Notice" /> |
|||
<cc:requires rdf:resource="http://creativecommons.org/ns#Attribution" /> |
|||
<cc:permits rdf:resource="http://creativecommons.org/ns#DerivativeWorks" /> |
|||
<cc:requires rdf:resource="http://creativecommons.org/ns#ShareAlike" /> |
|||
</cc:License> |
|||
</rdf:RDF> |
|||
</metadata> |
|||
<g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" transform="translate(0,-292.76665)"> |
|||
<path style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.22048618px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="m 0.79375,294.88331 h 2.6458333 l -1.3229202,1.32292 z" id="path4526" inkscape:connector-curvature="0" inkscape:transform-center-y="0.65386359" /> |
|||
</g> |
|||
</svg> |
|||
@ -1,38 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
|||
<!-- Created with Inkscape (http://www.inkscape.org/) --> |
|||
|
|||
<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="http://www.w3.org/2000/svg" |
|||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" |
|||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="16" height="16" viewBox="0 0 4.2333332 4.2333335" version="1.1" id="svg8" inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)" sodipodi:docname="triangle_right.svg"> |
|||
<defs id="defs2" /> |
|||
<sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="44.8" inkscape:cx="6.7613636" inkscape:cy="7.2582474" inkscape:document-units="mm" inkscape:current-layer="layer1" showgrid="true" units="px" fit-margin-top="0" fit-margin-left="0" fit-margin-right="0" fit-margin-bottom="0" showguides="true" inkscape:lockguides="false" inkscape:guide-bbox="true" inkscape:window-width="2560" inkscape:window-height="1370" inkscape:window-x="0" inkscape:window-y="0" inkscape:window-maximized="1"> |
|||
<inkscape:grid type="xygrid" id="grid815" /> |
|||
<sodipodi:guide position="0,2.1166667" orientation="0,1" id="guide4520" inkscape:locked="false" /> |
|||
<sodipodi:guide position="2.1166666,4.2333335" orientation="1,0" id="guide4522" inkscape:locked="false" /> |
|||
</sodipodi:namedview> |
|||
<metadata id="metadata5"> |
|||
<rdf:RDF> |
|||
<cc:Work rdf:about=""> |
|||
<dc:format>image/svg+xml</dc:format> |
|||
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> |
|||
<dc:title /> |
|||
<cc:license rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" /> |
|||
</cc:Work> |
|||
<cc:License rdf:about="http://creativecommons.org/licenses/by-sa/4.0/"> |
|||
<cc:permits rdf:resource="http://creativecommons.org/ns#Reproduction" /> |
|||
<cc:permits rdf:resource="http://creativecommons.org/ns#Distribution" /> |
|||
<cc:requires rdf:resource="http://creativecommons.org/ns#Notice" /> |
|||
<cc:requires rdf:resource="http://creativecommons.org/ns#Attribution" /> |
|||
<cc:permits rdf:resource="http://creativecommons.org/ns#DerivativeWorks" /> |
|||
<cc:requires rdf:resource="http://creativecommons.org/ns#ShareAlike" /> |
|||
</cc:License> |
|||
</rdf:RDF> |
|||
</metadata> |
|||
<g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" transform="translate(0,-292.76665)"> |
|||
<path style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.22048602px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="m 2.1166666,296.20623 v -2.64583 l 1.3229167,1.32292 z" id="path4526" inkscape:connector-curvature="0" /> |
|||
</g> |
|||
</svg> |
|||
@ -1,38 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
|||
<!-- Created with Inkscape (http://www.inkscape.org/) --> |
|||
|
|||
<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="http://www.w3.org/2000/svg" |
|||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" |
|||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="16" height="16" viewBox="0 0 4.2333332 4.2333335" version="1.1" id="svg8" inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)" sodipodi:docname="triangle_down.svg"> |
|||
<defs id="defs2" /> |
|||
<sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="89.6" inkscape:cx="6.3261338" inkscape:cy="5.4996444" inkscape:document-units="mm" inkscape:current-layer="layer1" showgrid="true" units="px" fit-margin-top="0" fit-margin-left="0" fit-margin-right="0" fit-margin-bottom="0" showguides="true" inkscape:lockguides="false" inkscape:guide-bbox="true" inkscape:window-width="2560" inkscape:window-height="1370" inkscape:window-x="0" inkscape:window-y="0" inkscape:window-maximized="1"> |
|||
<inkscape:grid type="xygrid" id="grid815" /> |
|||
<sodipodi:guide position="0,2.1166667" orientation="0,1" id="guide4520" inkscape:locked="false" /> |
|||
<sodipodi:guide position="2.1166666,4.2333335" orientation="1,0" id="guide4522" inkscape:locked="false" /> |
|||
</sodipodi:namedview> |
|||
<metadata id="metadata5"> |
|||
<rdf:RDF> |
|||
<cc:Work rdf:about=""> |
|||
<dc:format>image/svg+xml</dc:format> |
|||
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> |
|||
<dc:title></dc:title> |
|||
<cc:license rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" /> |
|||
</cc:Work> |
|||
<cc:License rdf:about="http://creativecommons.org/licenses/by-sa/4.0/"> |
|||
<cc:permits rdf:resource="http://creativecommons.org/ns#Reproduction" /> |
|||
<cc:permits rdf:resource="http://creativecommons.org/ns#Distribution" /> |
|||
<cc:requires rdf:resource="http://creativecommons.org/ns#Notice" /> |
|||
<cc:requires rdf:resource="http://creativecommons.org/ns#Attribution" /> |
|||
<cc:permits rdf:resource="http://creativecommons.org/ns#DerivativeWorks" /> |
|||
<cc:requires rdf:resource="http://creativecommons.org/ns#ShareAlike" /> |
|||
</cc:License> |
|||
</rdf:RDF> |
|||
</metadata> |
|||
<g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" transform="translate(0,-292.76665)"> |
|||
<path style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.22048618px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="m 0.79375,294.88331 h 2.6458333 l -1.3229202,1.32292 z" id="path4526" inkscape:connector-curvature="0" inkscape:transform-center-y="0.65386359" /> |
|||
</g> |
|||
</svg> |
|||
@ -1,38 +0,0 @@ |
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
|||
<!-- Created with Inkscape (http://www.inkscape.org/) --> |
|||
|
|||
<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="http://www.w3.org/2000/svg" |
|||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" |
|||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="16" height="16" viewBox="0 0 4.2333332 4.2333335" version="1.1" id="svg8" inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)" sodipodi:docname="triangle_right.svg"> |
|||
<defs id="defs2" /> |
|||
<sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="44.8" inkscape:cx="6.7613636" inkscape:cy="7.2582474" inkscape:document-units="mm" inkscape:current-layer="layer1" showgrid="true" units="px" fit-margin-top="0" fit-margin-left="0" fit-margin-right="0" fit-margin-bottom="0" showguides="true" inkscape:lockguides="false" inkscape:guide-bbox="true" inkscape:window-width="2560" inkscape:window-height="1370" inkscape:window-x="0" inkscape:window-y="0" inkscape:window-maximized="1"> |
|||
<inkscape:grid type="xygrid" id="grid815" /> |
|||
<sodipodi:guide position="0,2.1166667" orientation="0,1" id="guide4520" inkscape:locked="false" /> |
|||
<sodipodi:guide position="2.1166666,4.2333335" orientation="1,0" id="guide4522" inkscape:locked="false" /> |
|||
</sodipodi:namedview> |
|||
<metadata id="metadata5"> |
|||
<rdf:RDF> |
|||
<cc:Work rdf:about=""> |
|||
<dc:format>image/svg+xml</dc:format> |
|||
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> |
|||
<dc:title /> |
|||
<cc:license rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" /> |
|||
</cc:Work> |
|||
<cc:License rdf:about="http://creativecommons.org/licenses/by-sa/4.0/"> |
|||
<cc:permits rdf:resource="http://creativecommons.org/ns#Reproduction" /> |
|||
<cc:permits rdf:resource="http://creativecommons.org/ns#Distribution" /> |
|||
<cc:requires rdf:resource="http://creativecommons.org/ns#Notice" /> |
|||
<cc:requires rdf:resource="http://creativecommons.org/ns#Attribution" /> |
|||
<cc:permits rdf:resource="http://creativecommons.org/ns#DerivativeWorks" /> |
|||
<cc:requires rdf:resource="http://creativecommons.org/ns#ShareAlike" /> |
|||
</cc:License> |
|||
</rdf:RDF> |
|||
</metadata> |
|||
<g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1" transform="translate(0,-292.76665)"> |
|||
<path style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.22048602px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" d="m 2.1166666,296.20623 v -2.64583 l 1.3229167,1.32292 z" id="path4526" inkscape:connector-curvature="0" /> |
|||
</g> |
|||
</svg> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue