0
Fork 0
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:
Andrey Antukh 2016-04-04 20:34:29 +03:00
parent b5ba75097f
commit c0bf28682c
3 changed files with 4 additions and 3 deletions

View file

@ -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

View file

@ -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]

View file

@ -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}]]]])))