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

186 lines
7.3 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="64"
height="64"
id="svg2869"
version="1.1"
viewBox="0 0 64 64"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<defs
id="defs2871">
<linearGradient
xlink:href="#linearGradient3765"
id="linearGradient3771"
x1="98"
y1="1047.3622"
x2="81"
y2="993.36218"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(-60,-988.36218)" />
<linearGradient
id="linearGradient3765">
<stop
style="stop-color:#6c7086;stop-opacity:1;"
offset="0"
id="stop3767" />
<stop
style="stop-color:#cdd6f4;stop-opacity:1"
offset="1"
id="stop3769" />
</linearGradient>
<radialGradient
xlink:href="#linearGradient4001"
id="radialGradient4015"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.0317652,0.79366558,-0.83333336,1.0833333,13.126403,-25.507663)"
cx="30.363634"
cy="16.909092"
fx="30.363634"
fy="16.909092"
r="15.272727" />
<linearGradient
id="linearGradient4001">
<stop
style="stop-color:#f2cdcd;stop-opacity:1"
offset="0"
id="stop4003" />
<stop
style="stop-color:#912424;stop-opacity:1"
offset="1"
id="stop4005" />
</linearGradient>
</defs>
<metadata
id="metadata2874">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:creator>
<cc:Agent>
<dc:title>[maxwxyz]</dc:title>
</cc:Agent>
</dc:creator>
<dc:relation>https://www.freecad.org/wiki/index.php?title=Artwork</dc:relation>
<dc:publisher>
<cc:Agent>
<dc:title>FreeCAD</dc:title>
</cc:Agent>
</dc:publisher>
<dc:identifier>FreeCAD/src/</dc:identifier>
<dc:rights>
<cc:Agent>
<dc:title>FreeCAD LGPL2+</dc:title>
</cc:Agent>
</dc:rights>
<dc:date>2024</dc:date>
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer3"
style="display:inline">
<g
id="layer3-3"
style="display:inline">
<path
style="fill:url(#linearGradient3771);fill-opacity:1;stroke:#1e1e2e;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
d="m 11,3 v 58.00002 h 42 v -48 L 43,3 Z"
id="path2991" />
<path
style="fill:none;stroke:#cdd6f4;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 13,5 V 59.00002 H 51 V 13.81392 L 41.99741,5 Z"
id="path3763" />
<path
style="fill:#1e1e2e;fill-opacity:0.392157;stroke:#1e1e2e;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
d="M 43,3 V 13.00002 H 53 Z"
id="path2993" />
<g
id="g4011"
transform="matrix(0.79051929,0,0,0.79362693,6.7551722,20.555482)"
style="display:inline;stroke-width:1.26251">
<circle
transform="matrix(0.92857142,0,0,0.92857141,2.7142859,-14.428571)"
id="path3970"
style="fill:#f2cdcd;fill-opacity:1;stroke:#4c1313;stroke-width:2.71926;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:6;stroke-opacity:1"
cx="38"
cy="22"
r="14" />
<circle
transform="matrix(0.78571429,0,0,0.78571429,8.1428568,-11.285715)"
id="path3970-3"
style="display:inline;fill:url(#radialGradient4015);fill-opacity:1;stroke:#f2cdcd;stroke-width:3.21366;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:6;stroke-opacity:1"
cx="38"
cy="22"
r="14" />
</g>
<g
style="display:inline;stroke-width:4.41879;stroke-miterlimit:4;stroke-dasharray:none"
id="g3060"
transform="matrix(0.53017895,0,0,0.43687851,-57.203348,-1.7027788)">
<path
id="path3150-7"
d="M 181.76846,74.564006 V 110.8957 l -17.89251,14.53268 v -36.3317 z"
style="fill:#0846b3;stroke:none;stroke-width:4.41879" />
<path
id="path3930"
d="M 163.87595,121.79521 183.2595,103.62936"
style="fill:none;stroke:#307bf7;stroke-width:4.15565;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
id="path3932"
d="M 181.76845,110.8957 V 74.564003"
style="fill:none;stroke:#307bf7;stroke-width:4.15565;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
id="path3934"
d="m 181.76846,78.197173 -17.89251,14.53268"
style="fill:none;stroke:#307bf7;stroke-width:4.15565;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
id="path3936"
d="M 166.85803,85.463513 V 121.79521"
style="fill:none;stroke:#307bf7;stroke-width:4.15565;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
id="path3152-1"
d="M 163.87595,125.42838 140.01927,110.8957 V 74.564003 l 23.85668,14.532677 z"
style="fill:#307bf7;stroke:none;stroke-width:4.41879" />
<path
id="path3938"
d="M 160.89386,89.096683 V 121.79521"
style="fill:none;stroke:#89b4fa;stroke-width:4.15565;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
id="path3940"
d="m 140.01927,107.26253 23.85668,14.53268"
style="fill:none;stroke:#89b4fa;stroke-width:4.15565;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
id="path3942"
d="M 143.00136,110.8957 V 78.197173"
style="fill:none;stroke:#89b4fa;stroke-width:4.15565;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
id="path3150"
d="m 184.75054,70.930833 v 36.331697 l -20.87459,18.16585 V 89.096683 Z"
style="fill:none;stroke:#052459;stroke-width:4.15565;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1" />
<path
id="path3944"
d="M 163.87595,92.729853 140.01927,78.197173"
style="fill:none;stroke:#89b4fa;stroke-width:4.15565;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
id="path3152"
d="M 163.87595,125.42838 140.01927,110.8957 V 74.564003 l 23.85668,14.53268 z"
style="fill:none;stroke:#052459;stroke-width:4.15565;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1" />
<path
id="path3156"
d="m 184.75054,70.930833 -20.87459,18.16585 -23.85668,-14.53268 20.87459,-18.16585 23.85668,14.53268"
style="fill:#89b4fa;stroke:#052459;stroke-width:4.15565;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1" />
</g>
</g>
</g>
</svg>