🐛 Show color name on inspect

This commit is contained in:
Pablo Alba 2022-12-30 11:11:12 +01:00
parent 0144939f34
commit d1dbc3850d
3 changed files with 25 additions and 13 deletions

View file

@ -31,12 +31,12 @@
;; No multiple selection
(let [color (if (string? color) {:color color :opacity 1} color)]
[:div.color-bullet.tooltip.tooltip-right
[:div.color-bullet
{:class (dom/classnames :is-library-color (some? (:id color))
:is-not-library-color (nil? (:id color))
:is-gradient (some? (:gradient color)))
:on-click on-click
:title (or (:name color) (:color color) (gradient-type->string (:type (:gradient color))))}
:title (or (:color-library-name color) (:name color) (:color color) (gradient-type->string (:type (:gradient color))))}
(if (:gradient color)
[:div.color-bullet-wrapper {:style {:background (uc/color->background color)}}]
[:div.color-bullet-wrapper