0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 16:21:57 -05:00

💄 Show closed eye icon when hidden layer

This commit is contained in:
Andrés Moya 2020-04-03 12:28:13 +02:00
parent 27527c5540
commit 1d8f2dd735
2 changed files with 6 additions and 3 deletions

View file

@ -32,6 +32,7 @@
(def exit (icon-xref :exit))
(def export (icon-xref :export))
(def eye (icon-xref :eye))
(def eye-closed (icon-xref :eye-closed))
(def file-html (icon-xref :file-html))
(def file-svg (icon-xref :file-svg))
(def fill (icon-xref :fill))

View file

@ -164,7 +164,7 @@
[:div.element-actions
[:div.toggle-element {:class (when (:hidden item) "selected")
:on-click toggle-visibility}
i/eye]
(if (:hidden item) i/eye-closed i/eye)]
[:div.block-element {:class (when (:blocked item) "selected")
:on-click toggle-blocking}
i/lock]]
@ -263,13 +263,15 @@
:on-double-click #(dom/stop-propagation %)}
[:div.element-icon i/artboard]
[:& layer-name {:shape item}]
[:div.element-actions
[:div.toggle-element {:class (when (:hidden item) "selected")
:on-click toggle-visibility}
i/eye]
(if (:hidden item) i/eye-closed i/eye)]
#_[:div.block-element {:class (when (:blocked item) "selected")
:on-click toggle-blocking}
:on-click toggle-blocking}
i/lock]]
[:span.toggle-content
{:on-click toggle-collapse
:class (when-not collapsed? "inverse")}