minus-squareNiko@chaos.socialtoRust@programming.dev•gtk-rs change widget appearance at runtime.linkfedilinkarrow-up0·18 days 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/ linkfedilink
@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/