Package: gtk
Function gtk-icon-info-load-symbolic
Lambda Listgtk-icon-info-load-symbolic (info fg success warning error) ArgumentsReturn ValueA gdk-pixbuf object representing the loaded icon. Details
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 the gtk-icon-info-load-icon function. This allows loading symbolic icons that will match the system theme. Unless you are implementing a widget, you will want to use the g-themed-icon-new-with-default-fallbacks function to load the icon. As implementation details, the icon loaded needs to be of SVG type, contain the "symbolic" term as the last component of the icon name, and use the 'fg', 'success', 'warning' and 'error' CSS styles in the SVG file itself. | See also |
2021-11-28