From 7d7b4074b294297fe53dffd41c71805068ea4c8d Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Fri, 7 Jul 2023 10:54:18 +0200 Subject: [PATCH] :bug: Fix picking a gradient color in recent colors for a new color in the assets tab --- CHANGES.md | 1 + frontend/src/app/main/data/workspace/colors.cljs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index b9a39c120..959130e68 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -49,6 +49,7 @@ - Fix problem with images patterns repeating [#3372](https://github.com/penpot/penpot/issues/3372) - Fix grid not being clipped in frames [#3365](https://github.com/penpot/penpot/issues/3365) - Fix cut/delete text layer when while creating text [Taiga #5602](https://tree.taiga.io/project/penpot/issue/5602) +- Fix picking a gradient color in recent colors for a new color in the assets tab [Taiga #5601](https://tree.taiga.io/project/penpot/issue/5601) ### :arrow_up: Deps updates diff --git a/frontend/src/app/main/data/workspace/colors.cljs b/frontend/src/app/main/data/workspace/colors.cljs index 0d460babb..e96e27cb2 100644 --- a/frontend/src/app/main/data/workspace/colors.cljs +++ b/frontend/src/app/main/data/workspace/colors.cljs @@ -520,7 +520,8 @@ stops (mapv split-color-components (:stops gradient)) type (case (:type gradient) :linear :linear-gradient - :radial :radial-gradient)] + :radial :radial-gradient + (:type state))] (-> state (assoc :type type) (assoc :current-color (nth stops stop))