Skip to content

Commit 3a19d95

Browse files
committed
add icons
1 parent 36325d8 commit 3a19d95

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

resources/public/icons/cut.svg

+3
Loading
Loading

src/renderer/menubar/views.cljs

+12
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
:type :separator}
109109
{:key :cut
110110
:label "Cut"
111+
:icon "cut"
111112
:disabled? (not @(rf/subscribe [::element.s/selected?]))
112113
:action [::element.e/cut]}
113114
{:key :copy
@@ -147,6 +148,7 @@
147148
:action [::element.e/deselect-all]}
148149
{:key :invert-selection
149150
:label "Invert selection"
151+
:icon "invert-selection"
150152
:action [::element.e/invert-selection]}
151153
{:key :select-same-tags
152154
:icon "select-same"
@@ -230,21 +232,26 @@
230232
[]
231233
[{:key :simplify
232234
:label "Simplify"
235+
:icon "bezier-curve"
233236
:action [::element.e/manipulate-path :simplify]}
234237
{:key :smooth
235238
:label "Smooth"
239+
:icon "bezier-curve"
236240
:action [::element.e/manipulate-path :smooth]}
237241
{:key :flatten
238242
:label "Flatten"
243+
:icon "bezier-curve"
239244
:action [::element.e/manipulate-path :flatten]}
240245
{:key :reverse
241246
:label "Reverse"
247+
:icon "bezier-curve"
242248
:action [::element.e/manipulate-path :reverse]}])
243249

244250
(defn image-submenu
245251
[]
246252
[{:key :trace
247253
:label "Trace"
254+
:icon "image"
248255
:action [::element.e/trace]}])
249256

250257
(defn object-menu
@@ -255,10 +262,12 @@
255262
:disabled? (not @(rf/subscribe [::document.s/documents?]))
256263
:items [{:key :to-path
257264
:label "Object to path"
265+
:icon "bezier-curve"
258266
:disabled? (not @(rf/subscribe [::element.s/selected?]))
259267
:action [::element.e/->path]}
260268
{:key :stroke-to-path
261269
:label "Stroke to path"
270+
:icon "bezier-curve"
262271
:disabled? (not @(rf/subscribe [::element.s/selected?]))
263272
:action [::element.e/stroke->path]}
264273
{:key :divider-1
@@ -349,12 +358,15 @@
349358
:type :separator}
350359
{:label "Set to 50%"
351360
:key "50"
361+
:icon "magnifier"
352362
:action [::frame.e/set-zoom 0.5]}
353363
{:label "Set to 100%"
354364
:key "100"
365+
:icon "magnifier"
355366
:action [::frame.e/set-zoom 1]}
356367
{:label "Set to 200%"
357368
:key "200"
369+
:icon "magnifier"
358370
:action [::frame.e/set-zoom 2]}
359371
{:key :divider-2
360372
:type :separator}

0 commit comments

Comments
 (0)