Change Label color
#6272
-
|
Is there a way to change the color of a Label, not just a global one, but a specific Label? canvas.NewText doesn't suit me, since only Labels have wrapping and selectable mode. It's a shame it's not possible. |
Beta Was this translation helpful? Give feedback.
Answered by
limafresh
Apr 15, 2026
Replies: 1 comment 6 replies
-
|
Instead of Label, you can use RichText with one TextSegment, then you can set the ColorName to any of the other standard theme color names (eg Primary, Danger, etc). If you need a custom color, you can pair it with a custom theme |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Thank you so much! I was starting to think I'd have to look for another GUI toolkit. I'm leaving this example so it can help others.