diff --git a/frontend/src/app/main/data/workspace/texts.cljs b/frontend/src/app/main/data/workspace/texts.cljs index c42a65378..f9c7cbc7c 100644 --- a/frontend/src/app/main/data/workspace/texts.cljs +++ b/frontend/src/app/main/data/workspace/texts.cljs @@ -287,7 +287,7 @@ (nil? (:fills node)) (assoc :fills (:fills txt/default-text-attrs)) - (and (d/not-empty? color-attrs) (nil? (:fills node))) + (and (d/not-empty? color-attrs) (empty? (:fills node))) (-> (dissoc :fill-color :fill-opacity :fill-color-ref-id :fill-color-ref-file :fill-color-gradient) (assoc :fills [color-attrs]))))) diff --git a/frontend/src/app/main/ui/shapes/text/styles.cljs b/frontend/src/app/main/ui/shapes/text/styles.cljs index c8fbf2053..7d46c98ed 100644 --- a/frontend/src/app/main/ui/shapes/text/styles.cljs +++ b/frontend/src/app/main/ui/shapes/text/styles.cljs @@ -101,9 +101,6 @@ :textRendering "geometricPrecision"} fills (cond - (some? (:fills data)) - (:fills data) - ;; DEPRECATED: still here for backward compatibility with ;; old penpot files that still has a single color. (or (some? (:fill-color data)) @@ -113,7 +110,10 @@ :fill-color-ref-id :fill-color-ref-file]))] (nil? (:fills data)) - [{:fill-color "#000000" :fill-opacity 1}]) + [{:fill-color "#000000" :fill-opacity 1}] + + :else + (:fills data)) font (some->> font-id (get fontsdb))