Files
create/icons/themed/Draft_Scale.svg
forbes d7b532255b
Some checks failed
Build and Test / build (pull_request) Has been cancelled
feat(icons): add icon theming infrastructure with Catppuccin color remapping
- Remove hand-crafted kindred-icons/ in favor of auto-generated themed icons
- Add icons/mappings/ with FCAD.csv (Tango palette) and kindred.csv (Catppuccin Mocha)
- Add icons/retheme.py script to remap upstream FreeCAD SVG colors
- Generate icons/themed/ with 1,595 themed SVGs (45,300 color replacements)
- BitmapFactory loads icons/themed/ as highest priority before default icons
- 157-color mapping covers the full Tango palette, interpolating between
  4 luminance anchors per color family

Regenerate: python3 icons/retheme.py
2026-02-15 20:34:22 -06:00

244 lines
9.7 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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:xlink="http://www.w3.org/1999/xlink"
version="1.1"
id="svg2766"
height="64px"
width="64px">
<defs
id="defs2768">
<linearGradient
id="linearGradient3856">
<stop
id="stop3858"
offset="0"
style="stop-color:#307bf7;stop-opacity:1" />
<stop
id="stop3860"
offset="1"
style="stop-color:#89b4fa;stop-opacity:1" />
</linearGradient>
<linearGradient
id="linearGradient3824">
<stop
id="stop3826"
offset="0"
style="stop-color:#89b4fa;stop-opacity:1" />
<stop
id="stop3828"
offset="1"
style="stop-color:#0846b3;stop-opacity:1" />
</linearGradient>
<linearGradient
id="linearGradient3787">
<stop
style="stop-color:#2168de;stop-opacity:1;"
offset="0"
id="stop3789" />
<stop
style="stop-color:#7cacfa;stop-opacity:1;"
offset="1"
id="stop3791" />
</linearGradient>
<linearGradient
id="linearGradient3864">
<stop
style="stop-color:#2168de;stop-opacity:1;"
offset="0"
id="stop3866" />
<stop
style="stop-color:#7cacfa;stop-opacity:1;"
offset="1"
id="stop3868" />
</linearGradient>
<linearGradient
xlink:href="#linearGradient3895"
id="linearGradient3036"
gradientUnits="userSpaceOnUse"
x1="56.172409"
y1="29.279999"
x2="21.689653"
y2="36.079998"
gradientTransform="matrix(0,-1.4500001,1.4705882,0,-15.05882,91.45)" />
<linearGradient
id="linearGradient3895">
<stop
id="stop3897"
offset="0"
style="stop-color:#89b4fa;stop-opacity:1;" />
<stop
id="stop3899"
offset="1"
style="stop-color:#0846b3;stop-opacity:1;" />
</linearGradient>
<linearGradient
xlink:href="#linearGradient3895"
id="linearGradient3012"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.38366341,-0.38366341,0.41875298,0.41875298,12.196434,25.003375)"
x1="44.058071"
y1="18.865765"
x2="32.329041"
y2="43.940212" />
<linearGradient
gradientTransform="translate(-0.9420628,1.000004)"
gradientUnits="userSpaceOnUse"
y2="128.1946"
x2="599.1272"
y1="103.1946"
x1="591.59064"
id="linearGradient3830"
xlink:href="#linearGradient3824" />
<linearGradient
gradientUnits="userSpaceOnUse"
y2="68.194603"
x2="595.35895"
y1="135.1946"
x1="613.25824"
id="linearGradient3862"
xlink:href="#linearGradient3856" />
</defs>
<g
id="layer1">
<g
transform="matrix(1.0614931,0,0,1,-612.96941,-69.194602)"
id="g3518">
<path
style="fill:url(#linearGradient3862);fill-opacity:1;fill-rule:nonzero;stroke:#0846b3;stroke-width:1.94120501999999990;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
d="m 580.28581,72.194602 3e-5,14 5.65241,0 0,-8 1.88414,0 0,-6 z m 11.30486,0 0,6 7.53655,0 0,-6 z m 11.30483,0 0,6 7.53655,0 0,-6 z m 11.30483,0 0,6 7.53655,0 0,-6 z m 11.30483,0 0,6 3.76828,0 0,4 5.65241,0 0,-10 z m 3.76828,14 0,8 5.65241,0 0,-8 z m -48.9876,4 0,8 5.65241,0 0,-8 z m 48.9876,8 0,7.999998 5.65241,0 0,-7.999998 z m 0,11.999998 0,8 5.65241,0 0,-8 z m 0,12 0,2 -3.76828,0 0,6 9.42069,0 0,-8 z m -18.84139,2 0,6 11.30483,0 0,-6 z"
id="rect3446" />
<path
id="path3018"
d="m 583.11204,105.1946 0,22 20.72553,0 0,-22 z"
style="fill:none;stroke:#052459;stroke-width:7.7648201;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1" />
<path
id="path3018-1"
d="m 583.11204,105.1946 0,19.93618 0,2.06382 20.72553,0 0,-22 z"
style="fill:none;stroke:url(#linearGradient3830);stroke-width:3.88241005;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1" />
<path
id="path3018-1-7"
d="m 586.88032,126.1946 16.01518,0 0,-17 m 1.88413,-5 -22.60966,0 0,24"
style="fill:none;stroke:#89b4fa;stroke-width:1.94120502;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1" />
<path
transform="matrix(0.94206924,0,0,1,577.45963,69.194602)"
id="path3832"
d="m 36,57 10,0"
style="fill:none;stroke:#89b4fa;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
transform="matrix(0.94206924,0,0,1,577.45963,69.194602)"
id="path3834"
d="m 52,57 5,0 0,-2 3,0"
style="fill:none;stroke:#89b4fa;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1" />
<path
transform="matrix(0.94206924,0,0,1,577.45963,69.194602)"
id="path3836"
d="m 57,48 0,-6"
style="fill:none;stroke:#89b4fa;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
transform="matrix(0.94206924,0,0,1,577.45963,69.194602)"
id="path3838"
d="m 57,36 0,-6"
style="fill:none;stroke:#89b4fa;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
transform="matrix(0.94206924,0,0,1,577.45963,69.194602)"
id="path3840"
d="m 57,24 0,-6"
style="fill:none;stroke:#89b4fa;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
transform="matrix(0.94206924,0,0,1,577.45963,69.194602)"
id="path3842"
d="m 53,8 0,-3 7,0"
style="fill:none;stroke:#89b4fa;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
transform="matrix(0.94206924,0,0,1,577.45963,69.194602)"
id="path3844"
d="M 46,5 40,5"
style="fill:none;stroke:#89b4fa;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
transform="matrix(0.94206924,0,0,1,577.45963,69.194602)"
id="path3846"
d="M 34,5 28,5"
style="fill:none;stroke:#89b4fa;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
transform="matrix(0.94206924,0,0,1,577.45963,69.194602)"
id="path3848"
d="M 22,5 16,5"
style="fill:none;stroke:#89b4fa;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
transform="matrix(0.94206924,0,0,1,577.45963,69.194602)"
id="path3850"
d="M 10,5 5,5 5,16"
style="fill:none;stroke:#89b4fa;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
transform="matrix(0.94206924,0,0,1,577.45963,69.194602)"
id="path3852"
d="m 5,22 0,6"
style="fill:none;stroke:#89b4fa;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
transform="matrix(0.94206924,0,0,1,577.45963,69.194602)"
id="path3854"
d="M 57,12 57,9"
style="fill:none;stroke:#89b4fa;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
</g>
<path
id="path3343"
d="M 35,15 39.062816,19.37832 31,27 l 6,6 7.71967,-7.964826 4.24264,4.242641 L 49,15 z"
style="fill:url(#linearGradient3012);fill-opacity:1;fill-rule:evenodd;stroke:#052459;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
<path
id="path3343-2"
d="m 39.550023,17 2.32515,2.37832 -7.987667,7.653821 3.080353,3.112494 7.751811,-7.937888 2.221642,2.240472 L 47.000002,17 z"
style="fill:none;stroke:#89b4fa;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
</g>
<metadata
id="metadata5370">
<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="" />
<dc:date>Mon Oct 10 13:44:52 2011 +0000</dc:date>
<dc:creator>
<cc:Agent>
<dc:title>[wmayer]</dc:title>
</cc:Agent>
</dc:creator>
<dc:rights>
<cc:Agent>
<dc:title>FreeCAD LGPL2+</dc:title>
</cc:Agent>
</dc:rights>
<dc:publisher>
<cc:Agent>
<dc:title>FreeCAD</dc:title>
</cc:Agent>
</dc:publisher>
<dc:identifier>FreeCAD/src/Mod/Draft/Resources/icons/Draft_Scale.svg</dc:identifier>
<dc:relation>https://www.freecad.org/wiki/index.php?title=Artwork</dc:relation>
<dc:contributor>
<cc:Agent>
<dc:title>[agryson] Alexander Gryson</dc:title>
</cc:Agent>
</dc:contributor>
<dc:subject>
<rdf:Bag>
<rdf:li>square</rdf:li>
<rdf:li>arrow</rdf:li>
<rdf:li>dotted line</rdf:li>
<rdf:li />
</rdf:Bag>
</dc:subject>
<dc:description>A small square in the bottom left corner of a large dotted box with an arrow pointing from the top left corner of the inner box to the top left corner of the outer box</dc:description>
</cc:Work>
</rdf:RDF>
</metadata>
</svg>