mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 23:49:45 -05:00
Use :fill-opacity attribute instead :opacity.
This commit is contained in:
parent
b5ba75097f
commit
c0bf28682c
3 changed files with 4 additions and 3 deletions
|
@ -184,7 +184,7 @@
|
|||
(update-in state [:shapes-by-id sid]
|
||||
merge
|
||||
(when color {:fill color})
|
||||
(when opacity {:opacity opacity})))))
|
||||
(when opacity {:fill-opacity opacity})))))
|
||||
|
||||
(defn update-font-attrs
|
||||
[sid {:keys [family style weight size align
|
||||
|
|
|
@ -74,7 +74,8 @@
|
|||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
(def ^:static ^:private +style-attrs+
|
||||
#{:fill :opacity :stroke :stroke-opacity :stroke-width :stroke-type :rx :ry})
|
||||
#{:fill :fill-opacity :opacity :stroke :stroke-opacity
|
||||
:stroke-width :stroke-type :rx :ry})
|
||||
|
||||
(defn- transform-stroke-type
|
||||
[attrs]
|
||||
|
|
|
@ -185,7 +185,7 @@
|
|||
{:type "range"
|
||||
:min "0"
|
||||
:max "1"
|
||||
:value (:opacity shape "1")
|
||||
:value (:fill-opacity shape "1")
|
||||
:step "0.0001"
|
||||
:on-change on-opacity-change}]]]])))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue