mirror of
https://github.com/penpot/penpot.git
synced 2025-07-23 03:17:51 +02:00
✨ Minor cosmetic changes in ref definition.
This commit is contained in:
parent
9bb3e68d05
commit
2976bc4e5c
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@
|
||||||
(l/derived :picked-shift? refs/workspace-local))
|
(l/derived :picked-shift? refs/workspace-local))
|
||||||
|
|
||||||
(def viewport
|
(def viewport
|
||||||
(l/derived (comp :vport :workspace-local) st/state))
|
(l/derived (l/in [:workspace-local :vport]) st/state))
|
||||||
|
|
||||||
|
|
||||||
;; --- Color Picker Modal
|
;; --- Color Picker Modal
|
||||||
|
@ -104,7 +104,7 @@
|
||||||
(let [value (if (uc/hex? value) value "#000000")
|
(let [value (if (uc/hex? value) value "#000000")
|
||||||
[r g b] (uc/hex->rgb value)
|
[r g b] (uc/hex->rgb value)
|
||||||
[h s v] (uc/hex->hsv value)]
|
[h s v] (uc/hex->hsv value)]
|
||||||
|
|
||||||
{:hex (or value "000000")
|
{:hex (or value "000000")
|
||||||
:alpha (or opacity 1)
|
:alpha (or opacity 1)
|
||||||
:r r :g g :b b
|
:r r :g g :b b
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue