opt: replace sounddir dictionary icon

This commit is contained in:
YiFang Xiao 2023-07-21 14:10:40 +08:00
parent e5f91f6a3e
commit 46d62ebf8c
3 changed files with 194 additions and 1 deletions

192
icons/sounddir.svg Normal file
View file

@ -0,0 +1,192 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
version="1.0"
width="48"
height="48"
id="svg97"
sodipodi:docname="sounddir.svg"
xml:space="preserve"
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
id="namedview26"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="5.9514821"
inkscape:cx="-9.1573829"
inkscape:cy="61.749325"
inkscape:window-width="1920"
inkscape:window-height="991"
inkscape:window-x="-9"
inkscape:window-y="-9"
inkscape:window-maximized="1"
inkscape:current-layer="svg97" /><defs
id="defs3"><radialGradient
cx="605.71429"
cy="486.64789"
r="117.14286"
fx="605.71429"
fy="486.64789"
id="radialGradient6719"
xlink:href="#linearGradient5060"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-2.774389,0,0,1.969706,112.7623,-872.8854)" /><linearGradient
id="linearGradient5060"><stop
id="stop5062"
style="stop-color:#000000;stop-opacity:1"
offset="0" /><stop
id="stop5064"
style="stop-color:#000000;stop-opacity:0"
offset="1" /></linearGradient><radialGradient
cx="605.71429"
cy="486.64789"
r="117.14286"
fx="605.71429"
fy="486.64789"
id="radialGradient6717"
xlink:href="#linearGradient5060"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(2.774389,0,0,1.969706,-1891.633,-872.8854)" /><linearGradient
id="linearGradient5048"><stop
id="stop5050"
style="stop-color:#000000;stop-opacity:0"
offset="0" /><stop
id="stop5056"
style="stop-color:#000000;stop-opacity:1"
offset="0.5" /><stop
id="stop5052"
style="stop-color:#000000;stop-opacity:0"
offset="1" /></linearGradient><linearGradient
x1="302.85715"
y1="366.64789"
x2="302.85715"
y2="609.50507"
id="linearGradient6715"
xlink:href="#linearGradient5048"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(2.774389,0,0,1.969706,-1892.179,-872.8854)" /><linearGradient
id="linearGradient4970"><stop
id="stop4972"
style="stop-color:#ffffff;stop-opacity:1"
offset="0" /><stop
id="stop4974"
style="stop-color:#b9b9b9;stop-opacity:1"
offset="1" /></linearGradient><linearGradient
x1="23.150063"
y1="36.103832"
x2="23.150063"
y2="8.6947012"
id="linearGradient4976"
xlink:href="#linearGradient4970"
gradientUnits="userSpaceOnUse" /><radialGradient
xlink:href="#a"
id="d"
cx="4.3920336"
cy="32.307854"
r="6.375"
fx="4.3920336"
fy="32.307854"
gradientTransform="matrix(1,0,0,0.5098,0,16.05392)"
gradientUnits="userSpaceOnUse" /><radialGradient
xlink:href="#a"
id="e"
cx="4.3920336"
cy="32.307854"
r="6.375"
fx="4.3920336"
fy="32.307854"
gradientTransform="matrix(1,0,0,0.5098,0,16.05392)"
gradientUnits="userSpaceOnUse" /><radialGradient
xlink:href="#linearGradient5060"
id="c"
cx="23.25"
cy="35.375"
r="18.5"
fx="23.25"
fy="35.375"
gradientTransform="matrix(1,0,0,0.39865,0,21.2728)"
gradientUnits="userSpaceOnUse" /><linearGradient
id="a"><stop
offset="0"
stop-color="#fff"
id="stop325" /><stop
offset="1"
stop-color="#fff"
stop-opacity="0"
id="stop327" /></linearGradient></defs><g
id="layer1" /><g
id="layer3"><g
transform="matrix(2.262383e-2,0,0,2.086758e-2,43.38343,36.36962)"
id="g6707"
style="display:inline"
inkscape:label="g6707"><rect
width="1339.6335"
height="478.35718"
x="-1559.2523"
y="-150.69685"
id="rect6709"
style="opacity:0.40206185;fill:url(#linearGradient6715);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" /><path
d="M -219.61876,-150.68038 C -219.61876,-150.68038 -219.61876,327.65041 -219.61876,327.65041 C -76.744594,328.55086 125.78146,220.48075 125.78138,88.454235 C 125.78138,-43.572302 -33.655436,-150.68036 -219.61876,-150.68038 z"
id="path6711"
style="opacity:0.40206185;fill:url(#radialGradient6717);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" /><path
d="M -1559.2523,-150.68038 C -1559.2523,-150.68038 -1559.2523,327.65041 -1559.2523,327.65041 C -1702.1265,328.55086 -1904.6525,220.48075 -1904.6525,88.454235 C -1904.6525,-43.572302 -1745.2157,-150.68036 -1559.2523,-150.68038 z"
id="path6713"
style="opacity:0.40206185;fill:url(#radialGradient6719);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" /></g><path
d="M 2.3125,5.4375 C 1.8987305,5.4375 1.551942,5.8362304 1.59375,6.25 L 4.625,38.75 C 4.666808,39.163769 5.1174803,39.5625 5.53125,39.5625 L 6.25,39.5625 C 6.3134628,39.584176 6.330441,39.65625 6.40625,39.65625 L 39.71875,39.65625 C 39.925644,39.65625 40.21924,39.541309 40.40625,39.40625 C 40.936652,39.023186 41.074578,38.790769 41.3125,38.4375 C 43.760628,34.80244 47.125,18.96875 47.125,18.96875 C 47.228443,18.761866 46.997826,18.53125 46.6875,18.53125 L 35.4375,18.53125 L 34.71875,11.4375 C 34.676942,11.02373 34.226269,10.59375 33.8125,10.59375 L 21.09375,10.59375 C 20.503204,10.59375 19.881278,10.2278 19.6875,9.65625 L 18.5625,6.15625 C 18.393248,5.6570373 18.017323,5.4375 17.25,5.4375 L 2.3125,5.4375 z"
transform="matrix(0.987714,0,0,0.993607,-7.07861e-2,9.727255e-2)"
id="path2375"
style="fill:url(#linearGradient4976);fill-opacity:1;fill-rule:nonzero;stroke:#5a5a5a;stroke-width:1.00943172;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" /></g><g
id="layer2" /><g
color="#000000"
id="g342"
transform="matrix(0.54899486,0,0,0.56569663,7.467974,12.963828)"><path
fill="url(#c)"
fill-rule="evenodd"
d="m 41.75,35.375 a 18.5,7.375 0 1 1 -37,0 18.5,7.375 0 1 1 37,0 z"
opacity="0.3"
overflow="visible"
style="fill:url(#c);marker:none"
transform="translate(0,2.834646)"
id="path332" /><path
fill="#9db029"
stroke="#596616"
stroke-linecap="round"
stroke-linejoin="round"
d="M 41.625,7.7951523 18.5625,10.629798 v 21.78125 c -1.645955,-0.557651 -3.931785,-0.703429 -6.4375,-0.1875 -4.356314,0.896969 -7.4778602,3.299487 -7,5.34375 0.4778601,2.044263 4.393685,2.99072 8.75,2.09375 4.116641,-0.84762 7.684123,-3.037802 7.602633,-5 l 0.15625,-19.03125 16.930457,-2.895306 v 17.284614 c -10.25,-1.5 -13.292201,2.893236 -12.81434,4.9375 0.47786,2.044263 4.393686,2.990719 8.75,2.09375 3.865376,-0.795885 6.63241,-2.763211 6.90625,-4.625 z"
display="block"
style="marker:none"
id="path334" /><path
fill="none"
stroke="#ffffff"
d="M 40.729036,8.8956383 19.547267,11.730284 V 33.568621 C 11.982012,31.663311 5.8141632,35.40303 6.2685944,37.347065 6.9730255,40.6661 20.646969,38.449299 20.569474,34.208305 l 0.148589,-19.473166 18.850374,-2.892332 v 19.437166 c -7.566284,-1.926647 -13.265498,1.376384 -12.811066,3.32042 0.579431,3.194035 12.378226,2.113362 13.76364,-2.657146 z"
display="block"
opacity="0.511765"
style="marker:none"
id="path336" /><path
fill="url(#d)"
d="m 12.25,32.75 a 6.375,3.25 0 1 1 -12.75,0 6.375,3.25 0 1 1 12.75,0 z"
display="block"
opacity="0.511765"
overflow="visible"
style="fill:url(#d);marker:none"
transform="matrix(0.73452,-0.11164,0.11164,0.73452,3.903362,12.22551)"
id="path338" /><path
fill="url(#e)"
d="m 12.25,32.75 a 6.375,3.25 0 1 1 -12.75,0 6.375,3.25 0 1 1 12.75,0 z"
display="block"
opacity="0.511765"
overflow="visible"
style="fill:url(#e);marker:none"
transform="matrix(0.73452,-0.11164,0.11164,0.73452,23.74587,9.390864)"
id="path340" /></g></svg>

After

Width:  |  Height:  |  Size: 9.3 KiB

View file

@ -64,6 +64,7 @@
<file>icons/network.svg</file>
<file>icons/next.svg</file>
<file>icons/playsound_color.svg</file>
<file>icons/sounddir.svg</file>
<file>icons/previous.svg</file>
<file>icons/print.svg</file>
<file>icons/programs.svg</file>

View file

@ -299,7 +299,7 @@ void SoundDirDictionary::loadIcon() noexcept
loadIconFromFile( fInfo.absoluteFilePath(), true );
}
if ( dictionaryIcon.isNull() )
dictionaryIcon = QIcon( ":/icons/playsound_full.png" );
dictionaryIcon = QIcon( ":/icons/sounddir.svg" );
dictionaryIconLoaded = true;
}