mirror of
https://github.com/penpot/penpot.git
synced 2025-06-01 19:31:37 +02:00
WIP: partial grid.
This commit is contained in:
parent
64c9360b38
commit
a2c313dfc0
6 changed files with 266 additions and 60 deletions
|
@ -15,9 +15,20 @@
|
|||
(reify
|
||||
rs/UpdateEvent
|
||||
(-apply-update [_ state]
|
||||
(println "KAKAKA" (get-in state [:workspace :visible-pagebar]))
|
||||
(update-in state [:workspace :visible-pagebar] (fnil not false)))
|
||||
(update-in state [:workspace :pagesbar-enabled] (fnil not false)))
|
||||
|
||||
IPrintWithWriter
|
||||
(-pr-writer [mv writer _]
|
||||
(-write writer "#<event:u.s.p/toggle-pagebar>"))))
|
||||
|
||||
(defn toggle-grid
|
||||
[]
|
||||
(reify
|
||||
rs/UpdateEvent
|
||||
(-apply-update [_ state]
|
||||
(println "toggle-grid")
|
||||
(update-in state [:workspace :grid-enabled] (fnil not false)))
|
||||
|
||||
IPrintWithWriter
|
||||
(-pr-writer [mv writer _]
|
||||
(-write writer "#<event:u.s.p/toggle-grid>"))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue