mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-13 05:20:00 -08:00
[Icons] Migrate UI glyphs to palette-token SVGs
Runtime inversion is not a theming system: it rotates hue, breaks duotone art and mishandles alpha, and a QPixmap snapshot cannot follow a palette change. Redraw the top-level UI glyph set on a 24x24 grid with `currentColor` as the paint token, drop Inkscape/Sodipodi cruft, and delete the icons whose metaphor was duplicated (cogwheel/gear -> settings, scale_balanced -> scales, update.png -> reload). Load the glyphs through `loadThemedIcon` so the engine resolves the token from the palette on every request, and let `themePixmap` use the same resolution for one-shot pixmaps. `loadColorAdjustedPixmap` is gone; every caller now keeps a QIcon, which `SettingsButtonWidget::setButtonIcon` accepts instead of a QPixmap. Content art (mana, counters, countries) keeps its authored colors. Add a render test covering aspect ratio, palette flips, icon modes and high-DPI pixmaps.
This commit is contained in:
parent
95e5cda296
commit
7e71d424f1
95 changed files with 535 additions and 9681 deletions
|
|
@ -1,142 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<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"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="64px"
|
||||
height="64px"
|
||||
id="svg2508"
|
||||
sodipodi:version="0.32"
|
||||
inkscape:version="0.48.5 r10040"
|
||||
sodipodi:docname="icon_player.svg"
|
||||
inkscape:output_extension="org.inkscape.output.svg.inkscape"
|
||||
version="1.1">
|
||||
<defs
|
||||
id="defs2510">
|
||||
<linearGradient
|
||||
id="linearGradient5717">
|
||||
<stop
|
||||
style="stop-color:#003580;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop5719" />
|
||||
<stop
|
||||
id="stop5727"
|
||||
offset="0.25297618"
|
||||
style="stop-color:#055897;stop-opacity:1;" />
|
||||
<stop
|
||||
id="stop5725"
|
||||
offset="0.5"
|
||||
style="stop-color:#00a4ff;stop-opacity:1;" />
|
||||
<stop
|
||||
id="stop5733"
|
||||
offset="0.75"
|
||||
style="stop-color:#055897;stop-opacity:1;" />
|
||||
<stop
|
||||
style="stop-color:#003580;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop5721" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient5717"
|
||||
id="linearGradient5723"
|
||||
x1="339.93985"
|
||||
y1="482.58844"
|
||||
x2="459.27341"
|
||||
y2="355.50766"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0,0.1263349,-0.1263349,0,74.367722,-7.5042832)" />
|
||||
<linearGradient
|
||||
id="linearGradient3234">
|
||||
<stop
|
||||
style="stop-color:#6f6f6f;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3236" />
|
||||
<stop
|
||||
id="stop3242"
|
||||
offset="0.47999999"
|
||||
style="stop-color:#e6e6e6;stop-opacity:1;" />
|
||||
<stop
|
||||
style="stop-color:#ffffff;stop-opacity:1;"
|
||||
offset="0.5"
|
||||
id="stop3244" />
|
||||
<stop
|
||||
id="stop3286"
|
||||
offset="0.75"
|
||||
style="stop-color:#bebebe;stop-opacity:1;" />
|
||||
<stop
|
||||
style="stop-color:#494949;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3238" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3234"
|
||||
id="linearGradient5120"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(8.9332267e-2,8.9332267e-2,8.9332267e-2,-8.9332267e-2,-16.525693,40.126552)"
|
||||
x1="202.99225"
|
||||
y1="395.23221"
|
||||
x2="251.27765"
|
||||
y2="395.23221" />
|
||||
<inkscape:perspective
|
||||
sodipodi:type="inkscape:persp3d"
|
||||
inkscape:vp_x="0 : 32 : 1"
|
||||
inkscape:vp_y="0 : 1000 : 0"
|
||||
inkscape:vp_z="64 : 32 : 1"
|
||||
inkscape:persp3d-origin="32 : 21.333333 : 1"
|
||||
id="perspective2516" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="7.7781746"
|
||||
inkscape:cx="35.570639"
|
||||
inkscape:cy="33.231713"
|
||||
inkscape:current-layer="g2536"
|
||||
showgrid="true"
|
||||
inkscape:document-units="px"
|
||||
inkscape:grid-bbox="true"
|
||||
inkscape:window-width="1280"
|
||||
inkscape:window-height="725"
|
||||
inkscape:window-x="619"
|
||||
inkscape:window-y="35"
|
||||
inkscape:window-maximized="0" />
|
||||
<metadata
|
||||
id="metadata2513">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
id="layer1"
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer">
|
||||
<g
|
||||
id="g2536"
|
||||
transform="translate(-0.1818183,-3.0952293e-8)">
|
||||
<path
|
||||
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:3.4920001;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:60.01653385"
|
||||
d="m 60.100711,4.0811082 -8.925773,4.066985 C 41.14173,19.502755 31.186489,31.772714 19.035138,42.39632 16.923235,39.989095 14.162681,36.349247 12.592568,33.629733 L 7.4098614,38.84843 c 0,0 4.1855936,1.798155 5.3626626,2.627344 1.177067,0.829192 3.640464,3.136411 3.640464,3.136411 0,0 -6.9973489,9.844274 -12.8181741,11.40396 -1.8723058,0.501682 4.0691751,6.443164 4.5708593,4.570859 1.5576526,-5.813242 11.1468308,-13.589562 11.1468308,-13.589562 0,0 2.672321,3.126813 3.501514,4.30388 0.82919,1.177069 2.519371,5.470634 2.519371,5.470634 L 30.552085,51.58925 C 27.830216,50.017778 24.343721,47.501755 21.950055,45.40381 32.445673,33.693842 43.199214,24.522178 56.033726,13.00688 z"
|
||||
id="path5116"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cccccscsscsccccc" />
|
||||
</g>
|
||||
</g>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M14.5 17.5 3 6V3h3l11.5 11.5"/>
|
||||
<path d="M13 19l6-6"/>
|
||||
<path d="M16 16l4 4"/>
|
||||
<path d="M19 21l2-2"/>
|
||||
<path d="M5 14l4 4"/>
|
||||
<path d="M7 17l-3 3"/>
|
||||
</svg>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 331 B |
Loading…
Add table
Add a link
Reference in a new issue