Icon#

ignis.utils.Utils.get_file_icon_name(path: str, symbolic: bool = False) str | None#

Get a standart icon name for the file or directory.

Parameters:
  • path (str) -- The path to the file or directory.

  • symbolic (bool, default: False) -- Whether the icon should be symbolic.

Return type:

str | None

Returns:

The name of the icon. None if the icon with the given name is not found.

ignis.utils.Utils.get_paintable(widget: gi.repository.Gtk.Widget, icon_name: str, size: int) Gtk.IconPaintable | None#

Get a Gdk.Paintable by icon name.

Parameters:
  • widget -- The parent widget.

  • icon_name -- The name of the icon to look up.

  • size -- The size of the icon.

Returns:

The paintable object for the icon or None if no such icon exists.