Merge pull request #1691 from xiaoyifang/opt/svg-warning

opt: change the svg to png to suppress qt.svg warning
This commit is contained in:
xiaoyifang 2024-07-15 16:51:34 +08:00 committed by GitHub
commit 154968197e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 116 additions and 153 deletions

BIN
icons/lsasound.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

View file

@ -3,14 +3,14 @@
<svg
sodipodi:docname="lsasound.svg"
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
inkscape:version="1.3.2 (091e20e, 2023-11-25, custom)"
sodipodi:version="0.32"
id="svg2963"
height="48px"
width="48px"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
version="1.1"
inkscape:export-filename="Package-x-generic.png"
inkscape:export-filename="lsasound.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
xml:space="preserve"
@ -27,13 +27,7 @@
y="25.102291"
width="26.870057"
height="13.788583"
id="rect3582" /><inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="0 : 24 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="48 : 24 : 1"
inkscape:persp3d-origin="24 : 16 : 1"
id="perspective77" /><radialGradient
id="rect3582" /><radialGradient
inkscape:collect="always"
xlink:href="#linearGradient5060"
id="radialGradient6719"
@ -81,13 +75,6 @@
y1="366.64789"
x2="302.85715"
y2="609.50507" /><linearGradient
id="linearGradient2869"><stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop2871" /><stop
style="stop-color:#cccccc;stop-opacity:1.0000000;"
offset="1.0000000"
id="stop2873" /></linearGradient><linearGradient
id="linearGradient4995"><stop
id="stop4997"
offset="0"
@ -103,21 +90,6 @@
id="stop4991"
offset="1"
style="stop-color:#a0670c;stop-opacity:0;" /></linearGradient><linearGradient
id="linearGradient4979"><stop
id="stop4981"
offset="0.0000000"
style="stop-color:#fbf0e0;stop-opacity:1.0000000;" /><stop
id="stop4983"
offset="1.0000000"
style="stop-color:#f0ce99;stop-opacity:1.0000000;" /></linearGradient><linearGradient
id="linearGradient4946"
inkscape:collect="always"><stop
id="stop4948"
offset="0"
style="stop-color:#000000;stop-opacity:1;" /><stop
id="stop4950"
offset="1"
style="stop-color:#000000;stop-opacity:0;" /></linearGradient><linearGradient
id="linearGradient4222"><stop
id="stop4224"
offset="0"
@ -145,17 +117,7 @@
style="stop-color:#a36d18;stop-opacity:1.0000000;" /><stop
id="stop4186"
offset="1.0000000"
style="stop-color:#d79020;stop-opacity:1.0000000;" /></linearGradient><radialGradient
inkscape:collect="always"
xlink:href="#linearGradient4946"
id="radialGradient2252"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1.000000,0.000000,0.000000,0.333333,2.658463e-16,23.58206)"
cx="22.930462"
cy="35.373093"
fx="22.930462"
fy="35.373093"
r="17.576654" /><linearGradient
style="stop-color:#d79020;stop-opacity:1.0000000;" /></linearGradient><linearGradient
inkscape:collect="always"
xlink:href="#linearGradient4995"
id="linearGradient2274"
@ -241,9 +203,9 @@
stop-color="#fff"
stop-opacity="0"
id="stop3399" /></linearGradient></defs><sodipodi:namedview
inkscape:window-y="-9"
inkscape:window-x="-9"
inkscape:window-height="991"
inkscape:window-y="-8"
inkscape:window-x="-8"
inkscape:window-height="1017"
inkscape:window-width="1920"
stroke="#c17d11"
fill="#e9b96e"
@ -252,8 +214,8 @@
inkscape:grid-bbox="true"
showgrid="false"
inkscape:current-layer="layer1"
inkscape:cy="80.079843"
inkscape:cx="83.615377"
inkscape:cy="79.72629"
inkscape:cx="83.615378"
inkscape:zoom="2.8284271"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
@ -275,6 +237,7 @@
inkscape:groupmode="layer"
inkscape:label="Layer 1"
id="layer1"><g
id="g1"><g
style="display:inline"
transform="matrix(2.105461e-2,0,0,2.086758e-2,42.60172,35.4036)"
id="g6707"><rect
@ -372,10 +335,10 @@
id="path3412" /></g><text
xml:space="preserve"
id="text3580"
style="white-space:pre;shape-inside:url(#rect3582);fill:#808080;stroke:#000000"
style="white-space:pre;shape-inside:url(#rect3582);display:inline;fill:#808080;stroke:#000000"
transform="translate(4.5961941,0.70710678)"><tspan
x="10.607422"
y="36.020065"
id="tspan3816"><tspan
y="36.049526"
id="tspan2"><tspan
style="fill:#008000"
id="tspan3814">lsa</tspan></tspan></text></g></svg>
id="tspan1">lsa</tspan></tspan></text></g></g></svg>

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View file

@ -68,7 +68,7 @@
<file>icons/playsound_color.svg</file>
<file>icons/sounddir.svg</file>
<file>icons/zipsound.svg</file>
<file>icons/lsasound.svg</file>
<file>icons/lsasound.png</file>
<file>icons/previous.svg</file>
<file>icons/print.svg</file>
<file>icons/programs.svg</file>

View file

@ -483,7 +483,7 @@ void LsaDictionary::loadIcon() noexcept
if ( !loadIconFromFile( fileName ) ) {
// Load failed -- use default icons
dictionaryIcon = QIcon( ":/icons/lsasound.svg" );
dictionaryIcon = QIcon( ":/icons/lsasound.png" );
}
dictionaryIconLoaded = true;