Re: How to change GTK+3 label color dynamically
- From: Stefan Salewski <mail ssalewski de>
- To: Rúben Rodrigues <ruben_gr live com pt>, "gtk-app-devel-list gnome org" <gtk-app-devel-list gnome org>
- Subject: Re: How to change GTK+3 label color dynamically
- Date: Thu, 16 Mar 2017 11:23:17 +0100
On Thu, 2017-03-16 at 09:55 +0000, Rúben Rodrigues wrote:
Hi,
THanks. This is dynamically? I need in c language if possible :S
Thanks
Yes. The example
https://github.com/ngtk3/nim-gtk3/blob/master/test/colors.nim
is dynamically, I used it to generate some color schemes. Entered color
hex value in a text entry widget, and that color was applied.
As I said, it was working for 3.18. I think for 3.20 and above some CSS
names have changed, I had not the time to really investigate that.
I have no C code currently, I think my Nim code was inspired by Python
code, but I have no link to that python code currently. For C it is the
same pattern -- generate a CSS string and apply it.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]