Okay, this is way above my head, but here's what I've discovered:
The end goal is to use subtitle_label.set_attributes (attr_list); where attr_list is a Pango.AttributeList that contains the RGB values for our Pango foreground color.
The problem is that Gtk.StyleContext.lookup_color returns double values and Pango wants uint16 values.
So there's this whole song and dance about getting the RGB values from style context and storing them in a Gdk.RGBA and converting those values to something pango can read and then creating the attr_list.
Okay, this is way above my head, but here's what I've discovered:
The end goal is to use subtitle_ label.set_ attributes (attr_list); where attr_list is a Pango.AttributeList that contains the RGB values for our Pango foreground color.
The problem is that Gtk.StyleContex t.lookup_ color returns double values and Pango wants uint16 values.
So there's this whole song and dance about getting the RGB values from style context and storing them in a Gdk.RGBA and converting those values to something pango can read and then creating the attr_list.
So yeah.