-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
settings.html
201 lines (197 loc) · 8.89 KB
/
settings.html
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Maskable.app Settings</title>
<link href="/css/viewer.css" rel="stylesheet" />
<link href="/css/editor.css" rel="stylesheet" />
<link href="/css/settings.css" rel="stylesheet" />
<script type="module" src="/src/viewer/libs.js"></script>
<script type="module" src="/src/settings/mask-settings.js"></script>
<script type="module" src="/src/viewer/upload-icon.js"></script>
<script type="module" src="/src/viewer/keys.js"></script>
<script async src="https://media.ethicalads.io/media/client/ethicalads.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
{{> meta }}
</head>
<body>
<file-drop accept="image/*" id="icon_drop" class="icon__file-drop drop">
<main class="viewer">
{{> navbar page="settings" }}
<form>
<h2>Settings</h2>
<hr />
<section class="settings text">
<h3>Available Masks</h3>
<ul class="layers__list mask-settings">
<li class="layer">
<label class="layer__preview-button">
<input
name="mask"
type="checkbox"
disabled
value="none"
class="layer__radio"
autocomplete="off"
checked
/>
<div
class="layer__preview layer__preview--mask masked"
style="-webkit-clip-path: inset(0); clip-path: inset(0)"
>
<img class="icon" alt="" src="demo/spec.svg" />
</div>
<span class="layer__name">None</span>
</label>
</li>
<li class="layer">
<label class="layer__preview-button">
<input
name="mask"
type="checkbox"
disabled
value="minimum"
class="layer__radio"
autocomplete="off"
checked
/>
<div
class="layer__preview layer__preview--mask masked"
style="-webkit-clip-path: inset(10% round 50%); clip-path: inset(10% round 50%)"
>
<img class="icon" alt="" src="demo/spec.svg" />
</div>
<span class="layer__name">Minimum safe area</span>
</label>
</li>
<li class="layer">
<label class="layer__preview-button">
<input name="mask" type="checkbox" value="circle" class="layer__radio" autocomplete="off" checked />
<div
class="layer__preview layer__preview--mask masked"
style="-webkit-clip-path: inset(6.36% round 50%); clip-path: inset(6.36% round 50%)"
>
<img class="icon" alt="" src="demo/spec.svg" />
</div>
<span class="layer__name">Circle</span>
</label>
</li>
<li class="layer">
<label class="layer__preview-button">
<input
name="mask"
type="checkbox"
value="rounded_rect"
class="layer__radio"
autocomplete="off"
checked
/>
<div
class="layer__preview layer__preview--mask masked"
style="-webkit-clip-path: inset(6.36% round 11.33px); clip-path: inset(6.36% round 11.33px)"
>
<img class="icon" alt="" src="demo/spec.svg" />
</div>
<span class="layer__name">Rounded Rectangle</span>
</label>
</li>
<li class="layer">
<label class="layer__preview-button">
<input
name="mask"
type="checkbox"
value="sharp_rect"
class="layer__radio"
autocomplete="off"
checked
/>
<div
class="layer__preview layer__preview--mask masked"
style="-webkit-clip-path: inset(6.36%); clip-path: inset(6.36%)"
>
<img class="icon" alt="" src="demo/spec.svg" />
</div>
<span class="layer__name">Square</span>
</label>
</li>
<li class="layer">
<label class="layer__preview-button">
<input name="mask" type="checkbox" value="drop" class="layer__radio" autocomplete="off" checked />
<div
class="layer__preview layer__preview--mask masked"
style="
-webkit-clip-path: inset(6.36% round 50% 50% 11.33px);
clip-path: inset(6.36% round 50% 50% 11.33px);
"
>
<img class="icon" alt="" src="demo/spec.svg" />
</div>
<span class="layer__name">Drop</span>
</label>
</li>
<li class="layer">
<label class="layer__preview-button">
<input name="mask" type="checkbox" value="cylinder" class="layer__radio" autocomplete="off" checked />
<div
class="layer__preview layer__preview--mask masked"
style="-webkit-clip-path: inset(6.36% round 50% / 30%); clip-path: inset(6.36% round 50% / 30%)"
>
<img class="icon" alt="" src="demo/spec.svg" />
</div>
<span class="layer__name">Cylinder</span>
</label>
</li>
<li class="layer">
<label class="layer__preview-button">
<input name="mask" type="checkbox" value="squircle" class="layer__radio" autocomplete="off" />
<svg class="layer__preview layer__preview--mask" height="64" width="64" viewBox="0 0 192 192">
<image class="icon" width="192" height="192" href="demo/spec.svg" clip-path="url(#squircle)" />
</svg>
<span class="layer__name">Squircle</span>
</label>
</li>
<li class="layer">
<label class="layer__preview-button">
<input name="mask" type="checkbox" value="flower" class="layer__radio" autocomplete="off" />
<svg class="layer__preview layer__preview--mask" height="64" width="64" viewBox="0 0 192 192">
<image class="icon" width="192" height="192" href="demo/spec.svg" clip-path="url(#flower)" />
</svg>
<span class="layer__name">Flower</span>
</label>
</li>
<li class="layer">
<label class="layer__preview-button">
<input name="mask" type="checkbox" value="pebble" class="layer__radio" autocomplete="off" />
<svg class="layer__preview layer__preview--mask" height="64" width="64" viewBox="0 0 192 192">
<image class="icon" width="192" height="192" href="demo/spec.svg" clip-path="url(#pebble)" />
</svg>
<span class="layer__name">Pebble</span>
</label>
</li>
<li class="layer">
<label class="layer__preview-button">
<input name="mask" type="checkbox" value="vessel" class="layer__radio" autocomplete="off" />
<svg class="layer__preview layer__preview--mask" height="64" width="64" viewBox="0 0 192 192">
<image class="icon" width="192" height="192" href="demo/spec.svg" clip-path="url(#vessel)" />
</svg>
<span class="layer__name">Vessel</span>
</label>
</li>
<li class="layer">
<label class="layer__preview-button">
<input name="mask" type="checkbox" value="hexagon" class="layer__radio" autocomplete="off" />
<svg class="layer__preview layer__preview--mask" height="64" width="64" viewBox="0 0 192 192">
<image class="icon" width="192" height="192" href="demo/spec.svg" clip-path="url(#hexagon)" />
</svg>
<span class="layer__name">Hexagon</span>
</label>
</li>
</ul>
</section>
</form>
<aside class="about text">{{> ad }} {{> github }} {{> donate}}</aside>
</main>
</file-drop>
{{> clippaths}}
</body>
</html>