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

208 lines
7.1 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="svg4025"
height="64"
width="64">
<defs
id="defs4027">
<linearGradient
id="linearGradient3760">
<stop
id="stop3762"
offset="0"
style="stop-color:#003b8c;stop-opacity:1;" />
<stop
id="stop3764"
offset="1"
style="stop-color:#419ff7;stop-opacity:1;" />
</linearGradient>
<linearGradient
gradientTransform="matrix(0.10456791,0,0,0.10456791,420.90006,31.02362)"
y2="1190.875"
x2="1267.9062"
y1="1190.875"
x1="901.1875"
gradientUnits="userSpaceOnUse"
id="linearGradient3999"
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>
<linearGradient
y2="1190.875"
x2="1267.9062"
y1="1190.875"
x1="901.1875"
gradientTransform="matrix(0.11154583,0,0,0.10632854,-99.034281,-135.70449)"
gradientUnits="userSpaceOnUse"
id="linearGradient2979"
xlink:href="#linearGradient4095" />
<linearGradient
gradientUnits="userSpaceOnUse"
y2="17.210812"
x2="18.734758"
y1="40.196293"
x1="21.512983"
id="linearGradient3766"
xlink:href="#linearGradient3760" />
<linearGradient
id="linearGradient3760-8">
<stop
id="stop3762-0"
offset="0"
style="stop-color:#003b8c;stop-opacity:1;" />
<stop
id="stop3764-3"
offset="1"
style="stop-color:#419ff7;stop-opacity:1;" />
</linearGradient>
<linearGradient
gradientUnits="userSpaceOnUse"
y2="598.96307"
x2="127.30297"
y1="728.49023"
x1="182.81459"
id="linearGradient3765"
xlink:href="#linearGradient3759" />
<linearGradient
id="linearGradient3759">
<stop
id="stop3761"
offset="0"
style="stop-color:#258e7e;stop-opacity:1" />
<stop
id="stop3763"
offset="1"
style="stop-color:#94e2d5;stop-opacity:1" />
</linearGradient>
<linearGradient
xlink:href="#linearGradient3759"
id="linearGradient3011"
gradientUnits="userSpaceOnUse"
x1="182.81459"
y1="728.49023"
x2="127.30297"
y2="598.96307"
gradientTransform="matrix(0.09504067,0,0,0.09264468,4.970005,-73.062176)" />
<linearGradient
y2="499.08353"
x2="43.604301"
y1="436.03323"
x1="18.784323"
gradientTransform="matrix(-0.19425077,0.01140678,-0.0186946,-0.19481462,52.138813,96.130272)"
gradientUnits="userSpaceOnUse"
id="linearGradient3922"
xlink:href="#linearGradient3836" />
<linearGradient
id="linearGradient3836">
<stop
id="stop3838"
offset="0"
style="stop-color:#0846b3;stop-opacity:1" />
<stop
id="stop3840"
offset="1"
style="stop-color:#89b4fa;stop-opacity:1;" />
</linearGradient>
</defs>
<g
transform="translate(0,32)"
id="layer1">
<path
id="rect3942"
d="m 15,-29 0,16 -12,0 0,8 34,0 0,-8 -14,0 0,-16 z"
style="color:#11111b;fill:url(#linearGradient3011);fill-opacity:1;fill-rule:nonzero;stroke:#103b35;stroke-width:2;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" />
<path
id="rect3942-3"
d="m 17,-27 0,16 -12,0 0,4 30,0 0,-4 -14,0 0,-16 z"
style="color:#11111b;fill:none;stroke:#94e2d5;stroke-width:2;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" />
<g
id="g3856"
transform="matrix(0.70710678,-0.70710678,0.70710678,0.70710678,-193.32124,-0.82063019)">
<rect
transform="translate(127.44439,128.22016)"
y="37"
x="3"
height="6"
width="58"
id="rect3852"
style="fill:#cdd6f4;fill-opacity:1;stroke:#1e1e2e;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
<path
transform="translate(127.44439,128.22016)"
id="path3854"
d="M 59,41 5,41"
style="fill:none;stroke:#585b70;stroke-width:2;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:1" />
</g>
<path
d="M 29.355216,6.0610588 A 8.9934077,8.993818 45.020423 1 1 47.288878,4.6731528 8.9934077,8.993818 45.020423 1 1 29.355216,6.0610588 z"
id="path4250"
style="fill:#307bf7;fill-opacity:1;stroke:#052459;stroke-width:1.99999988;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
<path
d="M 31.358859,5.9113978 A 7.0000001,6.9999997 0 1 1 45.317147,4.8315208 7.0000001,6.9999997 0 0 1 31.358859,5.9113978 z"
id="path4250-7"
style="fill:url(#linearGradient3922);fill-opacity:1;stroke:#89b4fa;stroke-width:1.99999952;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
</g>
<metadata
id="metadata5667">
<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>Thu Feb 23 14:44:03 2012 -0200</dc:date>
<dc:creator>
<cc:Agent>
<dc:title>[Yorik van Havre]</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_Snap.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>perpendicular</rdf:li>
<rdf:li>point</rdf:li>
<rdf:li>line</rdf:li>
<rdf:li>dot</rdf:li>
<rdf:li>circle</rdf:li>
</rdf:Bag>
</dc:subject>
<dc:description>The perpendicular symbol above and to the left of a dot at the midpoint of a line</dc:description>
</cc:Work>
</rdf:RDF>
</metadata>
</svg>