mirror of
https://github.com/penpot/penpot.git
synced 2025-07-27 15:37:12 +02:00
♻️ Always set component-file-id, even in local file
This commit is contained in:
parent
53b5d78cdc
commit
baec7838b4
24 changed files with 284 additions and 258 deletions
|
@ -25,9 +25,7 @@
|
|||
(defn format-fill-color [_ shape]
|
||||
(let [color {:color (:fill-color shape)
|
||||
:opacity (:fill-opacity shape)
|
||||
:gradient (:fill-color-gradient shape)
|
||||
:id (:fill-ref-id shape)
|
||||
:file-id (:fill-ref-file-id shape)}]
|
||||
:gradient (:fill-color-gradient shape)}]
|
||||
(uc/color->background color)))
|
||||
|
||||
(defn format-stroke [_ shape]
|
||||
|
@ -35,9 +33,7 @@
|
|||
style (name (:stroke-style shape))
|
||||
color {:color (:stroke-color shape)
|
||||
:opacity (:stroke-opacity shape)
|
||||
:gradient (:stroke-color-gradient shape)
|
||||
:id (:stroke-ref-id shape)
|
||||
:file-id (:stroke-ref-file-id shape)}]
|
||||
:gradient (:stroke-color-gradient shape)}]
|
||||
(str/format "%spx %s %s" width style (uc/color->background color))))
|
||||
|
||||
(def styles-data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue