mirror of
https://github.com/penpot/penpot.git
synced 2025-08-02 07:18:22 +02:00
🐛 Allows remove fill in text shapes
This commit is contained in:
parent
2f1b72e105
commit
621545cc74
3 changed files with 10 additions and 2 deletions
|
@ -83,7 +83,13 @@
|
|||
fill-color-ref-id (obj/get data "fill-color-ref-id")
|
||||
fill-color-ref-file (obj/get data "fill-color-ref-file")
|
||||
|
||||
;; Uncomment this to allow to remove text colors. This could break the texts that already exist
|
||||
;;[r g b a] (if (nil? fill-color)
|
||||
;; [0 0 0 0] ;; Transparent color
|
||||
;; (uc/hex->rgba fill-color fill-opacity))
|
||||
|
||||
[r g b a] (uc/hex->rgba fill-color fill-opacity)
|
||||
|
||||
text-color (if fill-color-gradient
|
||||
(uc/gradient->css (js->clj fill-color-gradient))
|
||||
(str/format "rgba(%s, %s, %s, %s)" r g b a))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue