Skip to content

Commit 07e8caf

Browse files
committed
add animate submenu
1 parent 427f184 commit 07e8caf

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

src/renderer/menubar/views.cljs

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,18 @@
189189
:icon "divide"
190190
:action [:element/bool-operation :divide]}])
191191

192+
(defn animate-submenu
193+
[]
194+
[{:key :animate
195+
:label "Animate"
196+
:action [:element/animate :animate {}]}
197+
{:key :animate-transform
198+
:label "Animate Transform"
199+
:action [:element/animate :animateTransform {}]}
200+
{:key :animate-motion
201+
:label "Animate Motion"
202+
:action [:element/animate :animateMotion {}]}])
203+
192204
(defn path-submenu
193205
[]
194206
[{:key :simplify
@@ -250,13 +262,15 @@
250262
:label "Align"
251263
:type :sub-menu
252264
:items (align-submenu)}
253-
{:key :divider-4
254-
:type :separator}
265+
{:key :boolean
266+
:label "Animate"
267+
:type :sub-menu
268+
:items (animate-submenu)}
255269
{:key :boolean
256270
:label "Boolean operation"
257271
:type :sub-menu
258272
:items (boolean-submenu)}
259-
{:key :divider-5
273+
{:key :divider-4
260274
:type :separator}
261275
{:key :raise
262276
:label "Raise"
@@ -274,7 +288,7 @@
274288
:label "Lower to bottom"
275289
:icon "send-back"
276290
:action [:element/lower-to-bottom]}
277-
{:key :divider-6
291+
{:key :divider-5
278292
:type :separator}
279293
{:key :image
280294
:type :sub-menu

0 commit comments

Comments
 (0)