mirror of
https://github.com/penpot/penpot.git
synced 2026-03-21 01:43:43 +00:00
✨ Enable color update when externaly changed.
This commit is contained in:
committed by
Andrés Moya
parent
7b5f780ac7
commit
284ee4b68f
@@ -65,6 +65,9 @@
|
||||
|
||||
[:div.color-info
|
||||
[:input {:default-value (:fill-color shape)
|
||||
:ref (fn [el]
|
||||
(when el
|
||||
(set! (.-value el) (:fill-color shape))))
|
||||
:pattern "^#(?:[0-9a-fA-F]{3}){1,2}$"
|
||||
:on-change on-color-input-change}]]
|
||||
|
||||
|
||||
@@ -91,6 +91,9 @@
|
||||
:on-click show-color-picker}]
|
||||
[:div.color-info
|
||||
[:input {:default-value (:grid-color options)
|
||||
:ref (fn [el]
|
||||
(when el
|
||||
(set! (.-value el) (:grid-color options))))
|
||||
:pattern "^#(?:[0-9a-fA-F]{3}){1,2}$"
|
||||
:on-change on-color-input-change}]]]]]))
|
||||
|
||||
|
||||
@@ -93,6 +93,9 @@
|
||||
:on-click show-color-picker}]
|
||||
[:div.color-info
|
||||
[:input {:default-value (:stroke-color shape)
|
||||
:ref (fn [el]
|
||||
(when el
|
||||
(set! (.-value el) (:stroke-color shape))))
|
||||
:pattern "^#(?:[0-9a-fA-F]{3}){1,2}$"
|
||||
:on-change on-color-input-change}]]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user