mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +00:00
🐛 Fix color assets from shared libraries
This commit is contained in:
parent
919f78daeb
commit
083e77e9c5
@ -23,6 +23,7 @@
|
|||||||
- Fix wrong board size presets in Android [Taiga #12339](https://tree.taiga.io/project/penpot/issue/12339)
|
- Fix wrong board size presets in Android [Taiga #12339](https://tree.taiga.io/project/penpot/issue/12339)
|
||||||
- Fix problem with grid layout components and auto sizing [Github #7797](https://github.com/penpot/penpot/issues/7797)
|
- Fix problem with grid layout components and auto sizing [Github #7797](https://github.com/penpot/penpot/issues/7797)
|
||||||
- Fix some alignments on inspect tab [Taiga #12915](https://tree.taiga.io/project/penpot/issue/12915)
|
- Fix some alignments on inspect tab [Taiga #12915](https://tree.taiga.io/project/penpot/issue/12915)
|
||||||
|
- Fix color assets from shared libraries not appearing as assets in Selected colors panel [Taiga #12957](https://tree.taiga.io/project/penpot/issue/12957)
|
||||||
|
|
||||||
|
|
||||||
## 2.12.1
|
## 2.12.1
|
||||||
|
|||||||
@ -1122,7 +1122,7 @@
|
|||||||
ref-id (:stroke-color-ref-id stroke)
|
ref-id (:stroke-color-ref-id stroke)
|
||||||
|
|
||||||
colors (-> libraries
|
colors (-> libraries
|
||||||
(get ref-id)
|
(get ref-file)
|
||||||
(get :data)
|
(get :data)
|
||||||
(ctl/get-colors))
|
(ctl/get-colors))
|
||||||
shared? (contains? colors ref-id)
|
shared? (contains? colors ref-id)
|
||||||
@ -1167,7 +1167,7 @@
|
|||||||
ref-file (get color :ref-file)
|
ref-file (get color :ref-file)
|
||||||
ref-id (get color :ref-id)
|
ref-id (get color :ref-id)
|
||||||
colors (-> libraries
|
colors (-> libraries
|
||||||
(get ref-id)
|
(get ref-file)
|
||||||
(get :data)
|
(get :data)
|
||||||
(ctl/get-colors))
|
(ctl/get-colors))
|
||||||
shared? (contains? colors ref-id)
|
shared? (contains? colors ref-id)
|
||||||
@ -1184,7 +1184,7 @@
|
|||||||
(let [ref-file (:fill-color-ref-file fill)
|
(let [ref-file (:fill-color-ref-file fill)
|
||||||
ref-id (:fill-color-ref-id fill)
|
ref-id (:fill-color-ref-id fill)
|
||||||
colors (-> libraries
|
colors (-> libraries
|
||||||
(get ref-id)
|
(get ref-file)
|
||||||
(get :data)
|
(get :data)
|
||||||
(ctl/get-colors))
|
(ctl/get-colors))
|
||||||
|
|
||||||
@ -1232,7 +1232,7 @@
|
|||||||
ref-id (:fill-color-ref-id fill)
|
ref-id (:fill-color-ref-id fill)
|
||||||
|
|
||||||
colors (-> libraries
|
colors (-> libraries
|
||||||
(get ref-id)
|
(get ref-file)
|
||||||
(get :data)
|
(get :data)
|
||||||
(ctl/get-colors))
|
(ctl/get-colors))
|
||||||
shared? (contains? colors ref-id)
|
shared? (contains? colors ref-id)
|
||||||
|
|||||||
@ -54,7 +54,7 @@
|
|||||||
modifiers (dm/get-in modifiers [shape-id :modifiers])
|
modifiers (dm/get-in modifiers [shape-id :modifiers])
|
||||||
|
|
||||||
shape (gsh/transform-shape shape modifiers)
|
shape (gsh/transform-shape shape modifiers)
|
||||||
props (mf/spread-props props {:shape shape :file-id file-id :page-id page-id})]
|
props (mf/spread-props props {:shape shape :file-id file-id :page-id page-id :libraries libraries})]
|
||||||
|
|
||||||
(case shape-type
|
(case shape-type
|
||||||
:frame [:> frame/options* props]
|
:frame [:> frame/options* props]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user