Add tool for generating SVG tool icon cursors
The resulting files might need some adjusting but it's a good start --HG-- branch : feature
This commit is contained in:
parent
1be3c90cd3
commit
43ffbbe3c0
16
src/app/valentina/share/resources/cursor/svg/generate_tool_cursor.sh
Executable file
16
src/app/valentina/share/resources/cursor/svg/generate_tool_cursor.sh
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# example:
|
||||||
|
# $ ./generate_tool_cursor.sh ../../toolicon/32x32/*@2x.png
|
||||||
|
|
||||||
|
for var in "$@"
|
||||||
|
do
|
||||||
|
basename=${var##*/}
|
||||||
|
basename=${basename%.png}
|
||||||
|
basename=${basename%@2x} # remove optional @2x suffix
|
||||||
|
if [ ! -f $basename@2x.png ]; then # always prefere hidpi version
|
||||||
|
sed "s/<<basename>>/$basename@2x/" template_cursor.svg > ${basename}_cursor.svg
|
||||||
|
else
|
||||||
|
sed "s/<<basename>>/$basename/" template_cursor.svg > ${basename}_cursor.svg
|
||||||
|
fi
|
||||||
|
done
|
|
@ -0,0 +1,75 @@
|
||||||
|
<?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="32"
|
||||||
|
height="32"
|
||||||
|
viewBox="0 0 31.999999 32.000001"
|
||||||
|
id="svg4749"
|
||||||
|
version="1.1"
|
||||||
|
inkscape:version="0.91 r13725"
|
||||||
|
inkscape:export-xdpi="180"
|
||||||
|
inkscape:export-ydpi="180">
|
||||||
|
<defs
|
||||||
|
id="defs4751" />
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="24.96875"
|
||||||
|
inkscape:cx="15.439298"
|
||||||
|
inkscape:cy="10.15269"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
showgrid="false"
|
||||||
|
units="px"
|
||||||
|
inkscape:window-width="1680"
|
||||||
|
inkscape:window-height="1001"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1" />
|
||||||
|
<metadata
|
||||||
|
id="metadata4754">
|
||||||
|
<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 />
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Layer 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<image
|
||||||
|
xlink:href="../../toolicon/32x32/<<basename>>.png"
|
||||||
|
width="15"
|
||||||
|
height="15"
|
||||||
|
preserveAspectRatio="none"
|
||||||
|
id="image4213"
|
||||||
|
x="16.5"
|
||||||
|
y="17" />
|
||||||
|
<path
|
||||||
|
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
|
||||||
|
d="m 2.4999987,2.5 0.063,24 6.937,-6 11,0 z"
|
||||||
|
id="path4873"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="ccccc"
|
||||||
|
inkscape:export-xdpi="90"
|
||||||
|
inkscape:export-ydpi="90" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.2 KiB |
Loading…
Reference in New Issue
Block a user