IconInfo.loadSymbolicForStyle

gdkpixbuf.pixbuf.Pixbuf loadSymbolicForStyle(gtk.style.Style style, gtk.types.StateType state, out bool wasSymbolic)

Loads an icon, modifying it to match the system colours for the foreground, success, warning and error colors provided. If the icon is not a symbolic one, the function will return the result from [gtk.icon_info.IconInfo.loadIcon].

This allows loading symbolic icons that will match the system theme.

See [gtk.icon_info.IconInfo.loadSymbolic] for more details.

Parameters

stylea #GtkStyle to take the colors from
statethe widget state to use for colors
wasSymbolica #gboolean, returns whether the loaded icon was a symbolic one and whether the fg color was applied to it.

Returns

a #GdkPixbuf representing the loaded icon

Throws

[ErrorWrap]

Deprecated

Use [gtk.icon_info.IconInfo.loadSymbolicForContext] instead