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

288 lines
9.0 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
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"
width="64px"
height="64px"
id="svg2980"
version="1.1">
<defs
id="defs2982">
<linearGradient
id="linearGradient3890">
<stop
style="stop-color:#bc8009;stop-opacity:1"
offset="0"
id="stop3892" />
<stop
style="stop-color:#f9e2af;stop-opacity:1"
offset="1"
id="stop3894" />
</linearGradient>
<linearGradient
id="linearGradient3829">
<stop
style="stop-color:#b11b87;stop-opacity:1"
offset="0"
id="stop3831" />
<stop
style="stop-color:#f5c2e7;stop-opacity:1"
offset="1"
id="stop3833" />
</linearGradient>
<linearGradient
id="linearGradient3803">
<stop
style="stop-color:#6c7086;stop-opacity:1"
offset="0"
id="stop3805" />
<stop
style="stop-color:#7f849c;stop-opacity:1"
offset="1"
id="stop3807" />
</linearGradient>
<linearGradient
id="linearGradient3855">
<stop
style="stop-color:#f5c2e7;stop-opacity:1"
offset="0"
id="stop3857" />
<stop
style="stop-color:#b11b87;stop-opacity:1"
offset="1"
id="stop3859" />
</linearGradient>
<linearGradient
id="linearGradient3786"
osb:paint="solid">
<stop
style="stop-color:#a0eb07;stop-opacity:1;"
offset="0"
id="stop3788" />
</linearGradient>
<linearGradient
id="linearGradient3864">
<stop
id="stop3866"
offset="0"
style="stop-color:#89b4fa;stop-opacity:1;" />
<stop
id="stop3868"
offset="1"
style="stop-color:#0841a6;stop-opacity:1;" />
</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
xlink:href="#linearGradient3855"
id="linearGradient3863"
x1="5.1754909"
y1="28.663757"
x2="9.3772163"
y2="63.578461"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.95198975,0,0,0.91651928,0.07298588,1.7291139)" />
<linearGradient
gradientTransform="translate(63.406413,58.258077)"
xlink:href="#linearGradient3855-2"
id="linearGradient3861-4"
x1="3.9825215"
y1="31.552309"
x2="60.769054"
y2="51.094166"
gradientUnits="userSpaceOnUse" />
<linearGradient
id="linearGradient3855-2">
<stop
style="stop-color:#d07200;stop-opacity:1;"
offset="0"
id="stop3857-1" />
<stop
style="stop-color:#fcb200;stop-opacity:1;"
offset="1"
id="stop3859-6" />
</linearGradient>
<linearGradient
xlink:href="#linearGradient3855-2"
id="linearGradient3863-2"
x1="3.9825215"
y1="31.552309"
x2="23.852976"
y2="45.686504"
gradientUnits="userSpaceOnUse" />
<linearGradient
id="linearGradient3880">
<stop
style="stop-color:#d07200;stop-opacity:1;"
offset="0"
id="stop3882" />
<stop
style="stop-color:#fcb200;stop-opacity:1;"
offset="1"
id="stop3884" />
</linearGradient>
<linearGradient
gradientTransform="translate(63.406413,58.258077)"
y2="45.686504"
x2="23.852976"
y1="31.552309"
x1="3.9825215"
gradientUnits="userSpaceOnUse"
id="linearGradient3889"
xlink:href="#linearGradient3855-2" />
<linearGradient
xlink:href="#linearGradient3855-2"
id="linearGradient3921"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(63.406413,58.258077)"
x1="3.9825215"
y1="31.552309"
x2="23.852976"
y2="45.686504" />
<linearGradient
xlink:href="#linearGradient3803"
id="linearGradient3809"
x1="40"
y1="59"
x2="26"
y2="5"
gradientUnits="userSpaceOnUse" />
<linearGradient
xlink:href="#linearGradient3829"
id="linearGradient3835"
x1="21"
y1="52"
x2="19"
y2="41"
gradientUnits="userSpaceOnUse" />
<linearGradient
xlink:href="#linearGradient3855-5"
id="linearGradient3863-7"
x1="5.1754909"
y1="28.663757"
x2="9.3772163"
y2="63.578461"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.95198975,0,0,0.91651928,0.07298588,1.7291139)" />
<linearGradient
id="linearGradient3855-5">
<stop
style="stop-color:#f5c2e7;stop-opacity:1"
offset="0"
id="stop3857-3" />
<stop
style="stop-color:#b11b87;stop-opacity:1"
offset="1"
id="stop3859-5" />
</linearGradient>
<linearGradient
xlink:href="#linearGradient3890"
id="linearGradient3896"
x1="37"
y1="38"
x2="32"
y2="14"
gradientUnits="userSpaceOnUse" />
</defs>
<g
id="layer1">
<rect
style="fill:url(#linearGradient3809);fill-opacity:1;stroke:#1e1e2e;stroke-width:1.99999988000000006;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
id="rect3783"
width="48"
height="58"
x="13"
y="3" />
<path
style="fill:url(#linearGradient3863);fill-opacity:1;stroke:#490b38;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
d="m 7,27 -4,4 0,24 4,4 4,0 0,-32 z"
id="path3010" />
<rect
style="fill:none;stroke:#cdd6f4;stroke-width:1.99999975999999990;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
id="rect3783-3"
width="44"
height="54"
x="15"
y="5" />
<path
style="fill:url(#linearGradient3896);fill-opacity:1;stroke:#664506;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
d="m 27,5 0,32 24,0 z m 6,18 6,8 -6,0 z"
id="path3782" />
<path
style="fill:none;stroke:#f5c2e7;stroke-width:2;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
d="M 8,29 5,31.85285 5,54.171675 7.8160622,57 9,57 9,29 z"
id="path3010-6" />
<path
style="fill:url(#linearGradient3835);fill-opacity:1;stroke:#490b38;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
d="M 57,39 55,45 5,50 5,39 z"
id="path3012" />
<path
style="fill:none;stroke:#f5c2e7;stroke-width:2;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
d="M 54.220725,41 53.465976,43.178411 6.9877375,47.816062 7,41 z"
id="path3012-6" />
<path
style="fill:none;stroke:#f9e2af;stroke-width:2;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
d="m 29,11 0,24 18,0 z"
id="path3782-2" />
</g>
<metadata
id="metadata6050">
<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>Fri Feb 26 23:17:43 2016 +0100</dc:date>
<dc:creator>
<cc:Agent>
<dc:title>[triplus]</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/DraftWorkbench.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>ruler</rdf:li>
<rdf:li>drafting board</rdf:li>
<rdf:li>right angle ruler</rdf:li>
</rdf:Bag>
</dc:subject>
<dc:coverage>A right angle ruler resting on a ruler on a drafting board</dc:coverage>
</cc:Work>
</rdf:RDF>
</metadata>
</svg>