Gtk.IconInfo.prototype.load_symbolic_for_context

function load_symbolic_for_context(context:Gtk.StyleContext):GdkPixbuf.Pixbuf {
    // Gjs wrapper for gtk_icon_info_load_symbolic_for_context()
}

Loads an icon, modifying it to match the system colors 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.IconInfo.prototype.load_icon. This function uses the regular foreground color and the symbolic colors with the names "success_color", "warning_color" and "error_color" from the context.

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

See Gtk.IconInfo.prototype.load_symbolic for more details.

Since 3.0

context

a Gtk.StyleContext

Returns

a GdkPixbuf.Pixbuf representing the loaded icon