Add new palette UI

This commit is contained in:
Eva 2023-04-27 12:44:11 +02:00 committed by Andrés Moya
parent 68c1d9afaf
commit 36b016a37b
83 changed files with 1710 additions and 267 deletions

View file

@ -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))}