mirror of
https://github.com/penpot/penpot.git
synced 2025-07-26 09:07:25 +02:00
✨ Multiple fills in text shapes
This commit is contained in:
parent
a3063eb46d
commit
ec63d23666
19 changed files with 230 additions and 211 deletions
|
@ -95,6 +95,13 @@
|
|||
selected (impl/getSelectedBlocks state)]
|
||||
(reduce update-blocks state selected)))
|
||||
|
||||
(defn update-editor-current-inline-styles-fn
|
||||
[state update-fn]
|
||||
(let [attrs (-> (.getCurrentInlineStyle ^js state)
|
||||
(txt/styles-to-attrs)
|
||||
(update-fn))]
|
||||
(impl/applyInlineStyle state (txt/attrs-to-styles attrs))))
|
||||
|
||||
(defn editor-split-block
|
||||
[state]
|
||||
(impl/splitBlockPreservingData state))
|
||||
|
|
|
@ -119,7 +119,5 @@
|
|||
:text-transform (str (get "text-transform"))
|
||||
:text-decoration (str (get "text-decoration"))
|
||||
:font-style (str (get "font-style"))
|
||||
:fill-color (or (get "--fill-color") "#000000")
|
||||
:fill-color-gradient (transit/decode-str (get "--fill-color-gradient"))
|
||||
:fill-opacity (d/parse-double (or (get "--fill-opacity") "1"))
|
||||
:fills (transit/decode-str (get "--fills"))
|
||||
:text text}))))))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue