Style icons: fix artifacts in media icons

The media svg icons had some unneeded transparent objects which lead to
artifacts during png export/pngcrush optimization. Fix it by removing
the unused objects and re-export the pngs again.

Fixes: QTBUG-122272
Change-Id: I7e63ef53e5a78ce3a06c0053dea98e13c6ba264b
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 7a4b307210f2825f5f53b6d6f8537f27cc9659a1)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Christian Ehrlicher 2024-02-16 14:36:22 +01:00 committed by Qt Cherry-pick Bot
parent 62a8bb3477
commit 7874fc1ac8
25 changed files with 9 additions and 112 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 424 B

After

Width:  |  Height:  |  Size: 262 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 B

After

Width:  |  Height:  |  Size: 141 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 201 B

After

Width:  |  Height:  |  Size: 157 B

View File

@ -21,7 +21,7 @@
inkscape:export-ydpi="768"><metadata
id="metadata15"><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:Work></rdf:RDF></metadata><defs
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title /></cc:Work></rdf:RDF></metadata><defs
id="defs13" /><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
@ -51,16 +51,7 @@
.st0{fill:none;}
</style>
<rect
id="rect19-6"
width="2.0723705"
height="9.2413378"
x="-1.0361853"
y="6.6930394"
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.101217;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
transform="rotate(-45)"
inkscape:label="rect1"
sodipodi:insensitive="true" /><g
<g
id="g1774"><rect
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:2.0575"
id="rect1755"

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 859 B

After

Width:  |  Height:  |  Size: 584 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 213 B

After

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 296 B

After

Width:  |  Height:  |  Size: 227 B

View File

@ -51,24 +51,7 @@
.st0{fill:none;}
</style>
<rect
id="rect19"
width="2.0723703"
height="9.2413387"
x="10.277523"
y="-4.6206694"
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.101216;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
transform="rotate(44.999999)"
inkscape:label="rect2" /><rect
id="rect19-6"
width="2.0723705"
height="9.2413378"
x="-1.0361853"
y="6.6930394"
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.101217;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
transform="rotate(-45)"
inkscape:label="rect1"
sodipodi:insensitive="true" /><path
<path
id="rect873"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.93347"
d="M 3 3 L 3 13 L 12.896484 8 L 3 3 z " /></svg>

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 931 B

After

Width:  |  Height:  |  Size: 532 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 228 B

After

Width:  |  Height:  |  Size: 182 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 327 B

After

Width:  |  Height:  |  Size: 235 B

View File

@ -51,24 +51,7 @@
.st0{fill:none;}
</style>
<rect
id="rect19"
width="2.0723703"
height="9.2413387"
x="-12.349894"
y="-4.6206694"
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.101216;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
transform="rotate(-135)"
inkscape:label="rect2" /><rect
id="rect19-6"
width="2.0723705"
height="9.2413378"
x="-1.0361853"
y="6.6930394"
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.101217;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
transform="rotate(-45)"
inkscape:label="rect1"
sodipodi:insensitive="true" /><g
<g
id="g1560"
transform="rotate(180,8,7.9999997)"><path
id="rect873"

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 919 B

After

Width:  |  Height:  |  Size: 544 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 220 B

After

Width:  |  Height:  |  Size: 175 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 321 B

After

Width:  |  Height:  |  Size: 232 B

View File

@ -51,24 +51,7 @@
.st0{fill:none;}
</style>
<rect
id="rect19"
width="2.0723703"
height="9.2413387"
x="10.277523"
y="-4.6206694"
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.101216;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
transform="rotate(44.999999)"
inkscape:label="rect2" /><rect
id="rect19-6"
width="2.0723705"
height="9.2413378"
x="-1.0361853"
y="6.6930394"
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.101217;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
transform="rotate(-45)"
inkscape:label="rect1"
sodipodi:insensitive="true" /><g
<g
id="g1560"><path
id="rect873"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.45442"

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 933 B

After

Width:  |  Height:  |  Size: 582 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 226 B

After

Width:  |  Height:  |  Size: 183 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 322 B

After

Width:  |  Height:  |  Size: 248 B

View File

@ -51,25 +51,8 @@
.st0{fill:none;}
</style>
<rect
id="rect19-6"
width="2.0723705"
height="9.2413378"
x="-1.0361853"
y="6.6930394"
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.101217;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
transform="rotate(-45)"
inkscape:label="rect1"
sodipodi:insensitive="true" /><g
id="g1687"><rect
id="rect19"
width="2.0723703"
height="9.2413387"
x="-12.349894"
y="-4.6206694"
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.101216;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
transform="rotate(-135)"
inkscape:label="rect2" /><path
<g
id="g1687"><path
id="rect873"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.45442"
d="M 14,11.999999 V 3.9999994 L 7,7.9999996 Z" /><path

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 908 B

After

Width:  |  Height:  |  Size: 532 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 219 B

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 318 B

After

Width:  |  Height:  |  Size: 233 B

View File

@ -51,25 +51,8 @@
.st0{fill:none;}
</style>
<rect
id="rect19-6"
width="2.0723705"
height="9.2413378"
x="-1.0361853"
y="6.6930394"
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.101217;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
transform="rotate(-45)"
inkscape:label="rect1"
sodipodi:insensitive="true" /><g
id="g1659"><rect
id="rect19"
width="2.0723703"
height="9.2413387"
x="10.277523"
y="-4.6206694"
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.101216;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
transform="rotate(44.999999)"
inkscape:label="rect2" /><path
<g
id="g1659"><path
id="rect873"
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:1.45442"
d="m 2,4 v 8 L 9,7.9999998 Z" /><path

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -52,15 +52,6 @@
</style>
<rect
id="rect19-6"
width="2.0723705"
height="9.2413378"
x="-1.0361853"
y="6.6930394"
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.101217;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
transform="rotate(-45)"
inkscape:label="rect1"
sodipodi:insensitive="true" /><rect
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:2.06992"
id="rect1703"
width="12"

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB