There's no dedicated widget equivalent to the built in element Text. It's used en masse alongside widgets. So, you can expect for it to render according to the applying style with the appropriate Palette colors or whatever. And, in fact, its docs say:
color (in brush): The color of the text. (default value: depends on the style)
For the built in TextInput's color, the same is documented. But its selection-background-color and selection-foreground-color are improper, not style-related colors (in all styles):
I want to use TextInput with read-only: true; as a Text alternative that allows the end user to select and copy the text.
TextInput should behave like the TextEdit widget with regard to its selection colors:
There's no dedicated widget equivalent to the built in element
Text
. It's used en masse alongside widgets. So, you can expect for it to render according to the applying style with the appropriatePalette
colors or whatever. And, in fact, its docs say:For the built in
TextInput
'scolor
, the same is documented. But itsselection-background-color
andselection-foreground-color
are improper, not style-related colors (in all styles):I want to use
TextInput
withread-only: true;
as aText
alternative that allows the end user to select and copy the text.TextInput
should behave like theTextEdit
widget with regard to its selection colors: