0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

Minor cosmetic changes in ref definition.

This commit is contained in:
Andrey Antukh 2020-09-16 14:03:50 +02:00
parent 9bb3e68d05
commit 2976bc4e5c

View file

@ -39,7 +39,7 @@
(l/derived :picked-shift? refs/workspace-local))
(def viewport
(l/derived (comp :vport :workspace-local) st/state))
(l/derived (l/in [:workspace-local :vport]) st/state))
;; --- Color Picker Modal
@ -104,7 +104,7 @@
(let [value (if (uc/hex? value) value "#000000")
[r g b] (uc/hex->rgb value)
[h s v] (uc/hex->hsv value)]
{:hex (or value "000000")
:alpha (or opacity 1)
:r r :g g :b b