As per discussion below let's store any duotone presets (not custom colors which will remain "as is" in the styles.colors.duotone) into a new, dedicated duotone attribute on the block.
Why do you think it would need deprecations or additional backwards compatibility code?
The way I see it, old blocks with the custom colors saved continue to work like they did before. Nothing here gets touched.
New blocks that select a preset have a new attribute that unsets the style.color.duotone attribute and sets the new duotone attribute.
I think that it should be this PR so that we don't have to deal with backwards compatibility when switching over to storing custom filters in style and presets in duotone.
Originally posted by @ajlende in #48318 (comment)
As per discussion below let's store any duotone presets (not custom colors which will remain "as is" in the
styles.colors.duotone) into a new, dedicatedduotoneattribute on the block.Why do you think it would need deprecations or additional backwards compatibility code?
The way I see it, old blocks with the custom colors saved continue to work like they did before. Nothing here gets touched.
New blocks that select a preset have a new attribute that unsets the
style.color.duotoneattribute and sets the newduotoneattribute.I think that it should be this PR so that we don't have to deal with backwards compatibility when switching over to storing custom filters in
styleand presets induotone.Originally posted by @ajlende in #48318 (comment)