Skip to content

Multi-colored text cells #160

@tterimaa

Description

@tterimaa

Hi,

I have a use-case where I would need to write text cell that has different colors. For example a cell that contains a text 'foo bar' where 'foo' would be green and 'bar' would be red.

I assume this is not currently supported. It also seems a little bit difficult task to do with a custom drawer, because instead of a string I would need to deal with a list of strings, each of which have different colors.

I think this would either require a breaking change to TextCell API, or alternatively introduction of a new cell type e.g. MultiColoredTextCell. The latter would probably result in a lot of duplication in the code.

Is this a feature that has been requested previously, and do you think this type of a change could be accepted into the library?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions