mirror of
https://github.com/penpot/penpot.git
synced 2025-06-02 11:41:49 +02:00
✨ Add new palette UI
This commit is contained in:
parent
68c1d9afaf
commit
36b016a37b
83 changed files with 1710 additions and 267 deletions
|
@ -25,6 +25,7 @@
|
|||
[app.main.ui.hooks :as h]
|
||||
[app.main.ui.icons :as i]
|
||||
[app.main.worker :as wrk]
|
||||
[app.util.color :as uc]
|
||||
[app.util.dom :as dom]
|
||||
[app.util.dom.dnd :as dnd]
|
||||
[app.util.i18n :as i18n :refer [tr]]
|
||||
|
@ -126,7 +127,7 @@
|
|||
[:div.asset-list
|
||||
(for [color (:sample colors)]
|
||||
(let [default-name (cond
|
||||
(:gradient color) (bc/gradient-type->string (get-in color [:gradient :type]))
|
||||
(:gradient color) (uc/gradient-type->string (get-in color [:gradient :type]))
|
||||
(:color color) (:color color)
|
||||
:else (:value color))]
|
||||
[:div.asset-list-item {:key (str "assets-color-" (:id color))}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue