Re: Unable to set background color for button


Is there any example available to set the background color of a button
with the StyleProvider?

Am 04.03.20 um 18:51 schrieb Daniel Boles via gtkmm-list:
yes they do:

Deprecated: 3.16: This function is not useful in the context of
CSS-based rendering. If you wish to change the way a widget renders its
background you should use a custom CSS style, through an
application-specific Gtk::StyleProvider
<> and
a CSS style class. You can also override the default drawing of a widget
through the Gtk::Widget::signal_draw()
and use Cairo
<> to
draw a specific color, regardless of the CSS style.

gtkmm-list mailing list
gtkmm-list gnome org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]