@Doods Haven’t tried this, but maybe you can use pango markup to achieve this? https://gtk-rs.org/gtk4-rs/stable/latest/docs/gtk4/struct.Label.html#use-markup
Teaching computers to do things with arguable efficiency.
he/him
@Doods Haven’t tried this, but maybe you can use pango markup to achieve this? https://gtk-rs.org/gtk4-rs/stable/latest/docs/gtk4/struct.Label.html#use-markup
@Doods my blog note is not showing up in Lemmy.
I’ve tried this quickly and you can use pango markup (https://docs.gtk.org/Pango/pango_markup.html) to change the text color in the label.
Here is a snippet with a label and a button that changes the text color from blue to red.
Here you can find the snippet: https://blog.libove.org/posts/454ace46-64f1-4f7f-a03f-4183430a8d68/