Selaa lähdekoodia

Revert selection icon changes

dev_h
Ophir LOJKINE 4 vuotta sitten
vanhempi
commit
51988ff42b

+ 1
- 0
client-data/tools/hand/delete.svg Näytä tiedosto

@@ -1,5 +1,6 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <svg role="img" version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" id="root">
3 3
     <title>Delete</title>
4
+    <rect fill="#ffffffa0" x="0" y="0" width="24" height="24" rx="4"></rect>
4 5
     <path stroke="red" stroke-width="2" d="M 2 2 L 22 22 M 2 22 L 22 2"></path>
5 6
 </svg>

+ 1
- 0
client-data/tools/hand/duplicate.svg Näytä tiedosto

@@ -1,6 +1,7 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <svg role="img" version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" id="root">
3 3
     <title>Duplicate</title>
4
+    <rect fill="#ffffffa0" x="0" y="0" width="24" height="24" rx="4"></rect>
4 5
     <path d="m7.1549 7.1542v-3.5315c0-0.65725 0.52912-1.1864 1.1864-1.1864h11.991c0.65725 0 1.1864 0.52912 1.1864 1.1864v12.036c0 0.65725-0.52912 1.1864-1.1864 1.1864h-3.4867" fill="none" stroke="#000" stroke-linejoin="round" stroke-width=".3" />
5 6
     <rect x="2.481" y="7.155" width="14.364" height="14.409" ry="1.1864" fill="none" stroke="#000" stroke-linejoin="round" stroke-width=".3" />
6 7
     <rect transform="translate(-20.734 -16.126) scale(1,-1)" x="30.056" y="-33.755" width=".6819" height="6.5387" ry=".34186" />

+ 4
- 1
client-data/tools/hand/hand.js Näytä tiedosto

@@ -147,7 +147,10 @@
147 147
 	}
148 148
 
149 149
 	function createButton(name, icon, width, height, drawCallback, clickCallback) {
150
-		var shape = Tools.createSVGElement("use", {href: "tools/hand/" + icon + ".svg#root"});
150
+		var shape = Tools.createSVGElement("image", {
151
+			href: "tools/hand/" + icon + ".svg",
152
+			width: width, height: height
153
+		});
151 154
 		shape.style.display = "none";
152 155
 		shape.origWidth = width;
153 156
 		shape.origHeight = height;

+ 6
- 14
client-data/tools/hand/handle.svg Näytä tiedosto

@@ -1,16 +1,8 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2
-<svg role="img" version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
3
- <title>Instagram icon</title>
4
- <g transform="matrix(2.3668 2.3668 -2.3668 2.3668 13.98 -131.11)" fill="#ff002d">
5
-  <g transform="translate(-.5821 .16648)" fill="#f00">
6
-   <rect transform="rotate(-45)" x="-2.9234" y="40.131" width="5.7222" height="5.8388" ry=".34186" fill="#bdaddf" fill-opacity=".99078" stroke="#000" stroke-linejoin="round" stroke-width=".23901"/>
7
-  </g>
8
- </g>
9
- <metadata>
10
-  <rdf:RDF>
11
-   <cc:Work rdf:about="">
12
-    <dc:title>Instagram icon</dc:title>
13
-   </cc:Work>
14
-  </rdf:RDF>
15
- </metadata>
2
+<svg role="img" version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" id="root">
3
+    <g id="handle" transform="matrix(2.3668 2.3668 -2.3668 2.3668 13.98 -131.11)" fill="#ff002d">
4
+        <g transform="translate(-.5821 .16648)" fill="#f00">
5
+            <rect transform="rotate(-45)" x="-2.9234" y="40.131" width="5.7222" height="5.8388" ry=".34186" fill="#bdaddf" fill-opacity=".99078" stroke="#000" stroke-linejoin="round" stroke-width=".23901" />
6
+        </g>
7
+    </g>
16 8
 </svg>

Loading…
Peruuta
Tallenna