h4kor

joined 7 years ago
[โ€“] h4kor@chaos.social 2 points 11 months ago

@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/

[โ€“] h4kor@chaos.social 1 points 11 months ago

@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