Skip to content

Support separate background and foreground color on UI text #5935

@Weibye

Description

@Weibye

What problem does this solve or what need does it fill?

We would like to be able to support things like text-highlighting, text-selection and generally improve what we can do with text in our UI. These require that we can color foreground and background of the text independently.

At the moment we have support for foreground color of text in the text sections, but we have no background color support.

What solution would you like?

Not completely sure which approach is correct. Either add a background-color field to TextBundle or add background color to the TextSection.

We probably need the latter if we want to want to support highlighting of arbitrary sections of text, but this is going to be very interesting how it would work with things like "user marks arbitrary text that gets highlighted". Maybe these need to be multiple but separated features?

What alternative(s) have you considered?

  • Not supporting it.
  • Other approaches for text highlighting that is not connected to the TextBundle / TextSection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-TextRendering and layout for charactersA-UIGraphical user interfaces, styles, layouts, and widgetsC-FeatureA new feature, making something new possible

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions