undo.rs
2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
use mogwai::prelude::*;
use super::NS;
#[allow(dead_code)]
pub(crate) fn undo_icon() -> ViewBuilder<Dom> {
builder! {
<svg xmlns=NS viewBox="0 0 24 24"
width="15em" height="15em">
<rect xmlns=NS x="0" fill="none" width="24" height="24"/>
<g xmlns=NS>
<path xmlns=NS
d="M18.142 5.93
C16.97 4.756 15.435 4.17 13.9 4.17
s-3.072.586-4.244 1.757
L6 9.585
V6
H4 v7 h7 v-2
H7.414l3.657-3.657
c.756-.755 1.76-1.172 2.83-1.172 1.067 0 2.072.417
2.827 1.173 1.56 1.56 1.56 4.097 0 5.657
l-5.364 5.364 1.414 1.414 5.364-5.364
c2.345-2.343 2.345-6.142.002-8.485z"/>
</g>
</svg>
}
}
#[allow(dead_code)]
pub(crate) fn undo_point_icon() -> ViewBuilder<Dom> {
builder! {
<svg xmlns=NS viewBox="15 15 49 40"
width="1.5em" height="1.5em">
<path xmlns=NS fill="#000000" fill-opacity="1" stroke-width="0.2"
stroke-linejoin="round"
d="M 44.3333,31.6667
L 30.0833,31.6667
L 38,39.5833
L 28.7309,39.5833
L 17.4167,28.6649
L 28.7309,17.4167
L 38,17.4167
L 30.0833,25.3333
L 44.3333,25.3333
C 53.0778,25.3333 60.1667,32.4222 60.1667,41.1667
C 60.1667,49.9112 53.0778,57 44.3333,57
L 39.5833,57L 39.5833,50.6667
L 44.3333,50.6667
C 49.58,50.6667 53.8333,46.4134 53.8333,41.1667
C 53.8333,35.92 49.58,31.6667 44.3333,31.6667 Z
M 34.8333,50.6667
L 34.8333,57
L 28.5,57
L 28.5,50.6667
L 34.8333,50.6667 Z "/>
</svg>
}
}