Re: Unable to set background color for button



Thanks!

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
<https://developer.gnome.org/gtkmm/stable/classGtk_1_1StyleProvider.html> and
a CSS style class. You can also override the default drawing of a widget
through the Gtk::Widget::signal_draw()
<https://developer.gnome.org/gtkmm/stable/classGtk_1_1Widget.html#ab0a7d34fe7ae7a83fdb1e1ddd223e8f4>signal,
and use Cairo
<http://www.cairographics.org/documentation/cairomm/reference/namespaceCairo.html> to
draw a specific color, regardless of the CSS style.
"""

_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
https://mail.gnome.org/mailman/listinfo/gtkmm-list



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