0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-26 08:29:42 -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] (update-in state [:shapes-by-id sid]
merge merge
(when color {:fill color}) (when color {:fill color})
(when opacity {:opacity opacity}))))) (when opacity {:fill-opacity opacity})))))
(defn update-font-attrs (defn update-font-attrs
[sid {:keys [family style weight size align [sid {:keys [family style weight size align

View file

@ -74,7 +74,8 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(def ^:static ^:private +style-attrs+ (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 (defn- transform-stroke-type
[attrs] [attrs]

View file

@ -185,7 +185,7 @@
{:type "range" {:type "range"
:min "0" :min "0"
:max "1" :max "1"
:value (:opacity shape "1") :value (:fill-opacity shape "1")
:step "0.0001" :step "0.0001"
:on-change on-opacity-change}]]]]))) :on-change on-opacity-change}]]]])))