Skip to content

Commit e12eec6

Browse files
committed
fix: further simplify pushbutton SVG
1 parent c0de988 commit e12eec6

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed

src/pushbutton-element.ts

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -48,34 +48,17 @@ export class PushbuttonElement extends LitElement {
4848
xmlns:xlink="http://www.w3.org/1999/xlink"
4949
>
5050
<defs>
51-
<linearGradient
52-
id="grad-up"
53-
x1="61.904"
54-
x2="133.7"
55-
y1="70.549"
56-
y2="142.84"
57-
gradientTransform="matrix(.10523 0 0 .10523 -4.3122 -5.2194)"
58-
gradientUnits="userSpaceOnUse"
59-
>
51+
<linearGradient id="grad-up" x1="0" x2="1" y1="0" y2="1">
6052
<stop stop-color="#ffffff" offset="0" />
6153
<stop stop-color="${color}" offset="0.3" />
6254
<stop stop-color="${color}" offset="0.5" />
6355
<stop offset="1" />
6456
</linearGradient>
6557
<linearGradient
6658
id="grad-down"
67-
x1="61.904"
68-
x2="133.7"
69-
y1="70.549"
70-
y2="142.84"
71-
gradientTransform="matrix(.10523 0 0 .10523 -4.3122 -5.2194)"
72-
gradientUnits="userSpaceOnUse"
73-
>
74-
<stop offset="0" />
75-
<stop stop-color="${color}" offset="0.5" />
76-
<stop stop-color="${color}" offset="0.7" />
77-
<stop stop-color="#ffffff" offset="1" />
78-
</linearGradient>
59+
xlink:href="#grad-up"
60+
gradientTransform="rotate(180,0.5,0.5)"
61+
></linearGradient>
7962
</defs>
8063
<rect x="0" y="0" width="12" height="12" rx=".44" ry=".44" fill="#464646" />
8164
<rect x=".75" y=".75" width="10.5" height="10.5" rx=".211" ry=".211" fill="#eaeaea" />

0 commit comments

Comments
 (0)