-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Description
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
.