File tree 3 files changed +18
-0
lines changed
3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 108
108
:type :separator }
109
109
{:key :cut
110
110
:label " Cut"
111
+ :icon " cut"
111
112
:disabled? (not @(rf/subscribe [::element.s/selected? ]))
112
113
:action [::element.e/cut ]}
113
114
{:key :copy
147
148
:action [::element.e/deselect-all ]}
148
149
{:key :invert-selection
149
150
:label " Invert selection"
151
+ :icon " invert-selection"
150
152
:action [::element.e/invert-selection ]}
151
153
{:key :select-same-tags
152
154
:icon " select-same"
230
232
[]
231
233
[{:key :simplify
232
234
:label " Simplify"
235
+ :icon " bezier-curve"
233
236
:action [::element.e/manipulate-path :simplify ]}
234
237
{:key :smooth
235
238
:label " Smooth"
239
+ :icon " bezier-curve"
236
240
:action [::element.e/manipulate-path :smooth ]}
237
241
{:key :flatten
238
242
:label " Flatten"
243
+ :icon " bezier-curve"
239
244
:action [::element.e/manipulate-path :flatten ]}
240
245
{:key :reverse
241
246
:label " Reverse"
247
+ :icon " bezier-curve"
242
248
:action [::element.e/manipulate-path :reverse ]}])
243
249
244
250
(defn image-submenu
245
251
[]
246
252
[{:key :trace
247
253
:label " Trace"
254
+ :icon " image"
248
255
:action [::element.e/trace ]}])
249
256
250
257
(defn object-menu
255
262
:disabled? (not @(rf/subscribe [::document.s/documents? ]))
256
263
:items [{:key :to-path
257
264
:label " Object to path"
265
+ :icon " bezier-curve"
258
266
:disabled? (not @(rf/subscribe [::element.s/selected? ]))
259
267
:action [::element.e/->path ]}
260
268
{:key :stroke-to-path
261
269
:label " Stroke to path"
270
+ :icon " bezier-curve"
262
271
:disabled? (not @(rf/subscribe [::element.s/selected? ]))
263
272
:action [::element.e/stroke->path ]}
264
273
{:key :divider-1
349
358
:type :separator }
350
359
{:label " Set to 50%"
351
360
:key " 50"
361
+ :icon " magnifier"
352
362
:action [::frame.e/set-zoom 0.5 ]}
353
363
{:label " Set to 100%"
354
364
:key " 100"
365
+ :icon " magnifier"
355
366
:action [::frame.e/set-zoom 1 ]}
356
367
{:label " Set to 200%"
357
368
:key " 200"
369
+ :icon " magnifier"
358
370
:action [::frame.e/set-zoom 2 ]}
359
371
{:key :divider-2
360
372
:type :separator }
You can’t perform that action at this time.
0 commit comments