GTKD - overrideBackgroundColor of Button doesn't work
Gerald via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jun 15 13:49:02 PDT 2016
On Wednesday, 15 June 2016 at 09:03:45 UTC, TheDGuy wrote:
> Hello,
> why does this code not work?
>
> RGBA rgb = new RGBA(1,0.5,0.5,1.0);
> Button btn_1 = new Button("Start");
> btn_1.overrideBackgroundColor(StateFlags.NORMAL, rgb);
>
> The color of btn_1 just doesn't change.
https://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-override-background-color
More information about the Digitalmars-d-learn
mailing list