Files
create/icons/themed/Draft_SwitchMode.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

317 lines
9.9 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="svg3612"
height="64px"
width="64px">
<defs
id="defs3614">
<linearGradient
id="linearGradient3144-6">
<stop
offset="0"
style="stop-color:#cdd6f4;stop-opacity:1"
id="stop3146-9" />
<stop
offset="1"
style="stop-color:#cdd6f4;stop-opacity:0"
id="stop3148-2" />
</linearGradient>
<linearGradient
id="linearGradient3701">
<stop
offset="0"
style="stop-color:#cdd6f4;stop-opacity:1"
id="stop3703" />
<stop
offset="1"
style="stop-color:#cdd6f4;stop-opacity:0"
id="stop3705" />
</linearGradient>
<radialGradient
r="34.345188"
fy="672.79736"
fx="225.26402"
cy="672.79736"
cx="225.26402"
gradientTransform="matrix(1,0,0,0.6985294,0,202.82863)"
gradientUnits="userSpaceOnUse"
id="radialGradient3688"
xlink:href="#linearGradient3144-6" />
<linearGradient
id="linearGradient3708">
<stop
offset="0"
style="stop-color:#cdd6f4;stop-opacity:1"
id="stop3710" />
<stop
offset="1"
style="stop-color:#cdd6f4;stop-opacity:0"
id="stop3712" />
</linearGradient>
<linearGradient
id="linearGradient3864-0-0">
<stop
style="stop-color:#2168de;stop-opacity:1;"
offset="0"
id="stop3866-5-7" />
<stop
style="stop-color:#7cacfa;stop-opacity:1;"
offset="1"
id="stop3868-7-6" />
</linearGradient>
<linearGradient
id="linearGradient3377">
<stop
style="stop-color:#f8ca69;stop-opacity:1;"
offset="0"
id="stop3379" />
<stop
style="stop-color:#f9d791;stop-opacity:1;"
offset="1"
id="stop3381" />
</linearGradient>
<linearGradient
id="linearGradient3864-0">
<stop
style="stop-color:#2168de;stop-opacity:1;"
offset="0"
id="stop3866-5" />
<stop
style="stop-color:#7cacfa;stop-opacity:1;"
offset="1"
id="stop3868-7" />
</linearGradient>
<linearGradient
id="linearGradient5048">
<stop
id="stop5050"
offset="0"
style="stop-color:black;stop-opacity:0;" />
<stop
style="stop-color:black;stop-opacity:1;"
offset="0.5"
id="stop5056" />
<stop
id="stop5052"
offset="1"
style="stop-color:black;stop-opacity:0;" />
</linearGradient>
<linearGradient
id="linearGradient3841-0-3">
<stop
style="stop-color:#2168de;stop-opacity:1;"
offset="0"
id="stop3843-1-3" />
<stop
style="stop-color:#7cacfa;stop-opacity:1;"
offset="1"
id="stop3845-0-8" />
</linearGradient>
<radialGradient
id="aigrd2"
cx="20.892099"
cy="114.5684"
r="5.256"
fx="20.892099"
fy="114.5684"
gradientUnits="userSpaceOnUse">
<stop
offset="0"
style="stop-color:#8c92ab"
id="stop15566" />
<stop
offset="1.0000000"
style="stop-color:#585b70;stop-opacity:1.0000000;"
id="stop15568" />
</radialGradient>
<radialGradient
id="aigrd3"
cx="20.892099"
cy="64.567902"
r="5.257"
fx="20.892099"
fy="64.567902"
gradientUnits="userSpaceOnUse">
<stop
offset="0"
style="stop-color:#8c92ab"
id="stop15573" />
<stop
offset="1.0000000"
style="stop-color:#585b70;stop-opacity:1.0000000;"
id="stop15575" />
</radialGradient>
<linearGradient
id="linearGradient15662">
<stop
id="stop15664"
offset="0.0000000"
style="stop-color:#cdd6f4;stop-opacity:1.0000000;" />
<stop
id="stop15666"
offset="1.0000000"
style="stop-color:#afb6d2;stop-opacity:1.0000000;" />
</linearGradient>
<radialGradient
xlink:href="#linearGradient259"
id="radialGradient4452"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.96049297,0,0,1.041132,-52.144249,-702.33158)"
cx="33.966679"
cy="35.736916"
fx="33.966679"
fy="35.736916"
r="86.70845" />
<linearGradient
id="linearGradient259">
<stop
id="stop260"
offset="0.0000000"
style="stop-color:#b7bfdc;stop-opacity:1.0000000;" />
<stop
id="stop261"
offset="1.0000000"
style="stop-color:#595c71;stop-opacity:1.0000000;" />
</linearGradient>
<radialGradient
xlink:href="#linearGradient269"
id="radialGradient4454"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.96827297,0,0,1.032767,-48.790699,-701.68513)"
cx="8.824419"
cy="3.7561285"
fx="8.824419"
fy="3.7561285"
r="37.751713" />
<linearGradient
id="linearGradient269">
<stop
id="stop270"
offset="0.0000000"
style="stop-color:#585b70;stop-opacity:1.0000000;" />
<stop
id="stop271"
offset="1.0000000"
style="stop-color:#2c2d3e;stop-opacity:1.0000000;" />
</linearGradient>
<linearGradient
y2="1190.875"
x2="1267.9062"
y1="1190.875"
x1="901.1875"
gradientTransform="matrix(0.10456791,0,0,0.10456791,420.90006,-32.97638)"
gradientUnits="userSpaceOnUse"
id="linearGradient4937"
xlink:href="#linearGradient4095" />
<linearGradient
id="linearGradient4095">
<stop
id="stop4097"
offset="0"
style="stop-color:#5190f8;stop-opacity:1;" />
<stop
id="stop4099"
offset="1"
style="stop-color:#89b4fa;stop-opacity:1;" />
</linearGradient>
</defs>
<g
id="layer1">
<g
style="stroke:#1e1e2e"
id="g5015"
transform="translate(-446.8047,-67.879686)">
<rect
style="color:#11111b;fill:#307bf7;fill-opacity:1;fill-rule:nonzero;stroke:#1e1e2e;stroke-width:6;stroke-linecap:square;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"
id="rect4094"
width="33.999607"
height="33.999977"
x="471.80469"
y="92.879707" />
<rect
style="color:#11111b;fill:none;stroke:#89b4fa;stroke-width:1.99999988;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
id="rect4094-3"
width="26"
height="26"
x="475.80469"
y="96.879707" />
<rect
style="color:#11111b;fill:none;stroke:#6c7086;stroke-width:2;stroke-linecap:square;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"
id="rect4094-67"
width="33.999607"
height="33.999977"
x="471.80508"
y="92.879707" />
<rect
style="color:#11111b;fill:none;stroke:#1e1e2e;stroke-width:6;stroke-linecap:square;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"
id="rect4094-6"
width="33.999607"
height="33.999977"
x="451.80469"
y="72.879684" />
<rect
style="color:#11111b;fill:none;stroke:#6c7086;stroke-width:2;stroke-linecap:square;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"
id="rect4094-6-3"
width="33.999607"
height="33.999977"
x="451.80469"
y="72.879684" />
</g>
</g>
<metadata
id="metadata5734">
<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_SwitchMode.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>squares</rdf:li>
<rdf:li>empty</rdf:li>
<rdf:li>full</rdf:li>
<rdf:li>filled</rdf:li>
<rdf:li>wireframe</rdf:li>
</rdf:Bag>
</dc:subject>
<dc:description>An empty square in front of and slightly to the top left of a filled square</dc:description>
</cc:Work>
</rdf:RDF>
</metadata>
</svg>