cosmic-text
cosmic-text copied to clipboard
Extract color overrides from `attrs_list` into new `color_spans` field
This is a follow up for #100. It removes the color_opt field from Attrs and stores the information in the new color_spans field of BufferLine instead. This allows it to be mutated without having to do relayouts.
Fixes #69.
this looks very promising, However You probably should move Metadata in with the Color as these are ones that don't affect the Layout.
Might also be Worth it to allow the End user to get a Mutable Span if one Already Existed so they can update it rather than replace it. what do you think @jackpot51 ?