findLargestThemedIcon - multiple declarations

Function findLargestThemedIcon

Find icon of the largest size. It uses icon theme cache wherever possible.

auto auto findLargestThemedIcon(alias subdirFilter, IconThemes, BaseDirs, Exts) (
  string iconName,
  IconThemes iconThemes,
  BaseDirs searchIconDirs,
  Exts extensions
);

Parameters

NameDescription
iconName Name of icon to search as defined by Icon Theme Specification (i.e. without path and extension parts).
iconThemes Range of IconThemeFile objects.
searchIconDirs Base icon directories.
extensions Allowed file extensions.

Returns

IconSearchResult. filePath will be empty if icon is not found.

Note

If icon of some size was found in the icon theme, this algorithm does not check following themes, even if they contain icons with larger size. Therefore the icon found in the most preferred theme always has presedence over icons from other themes.

See Also

findLargestIcon, baseIconDirs, lookupIcon, findNonThemedIcon

Function findLargestThemedIcon

ditto, but with predefined extensions.

auto auto findLargestThemedIcon(alias subdirFilter, IconThemes, BaseDirs) (
  string iconName,
  IconThemes iconThemes,
  BaseDirs searchIconDirs
);

See Also

defaultIconExtensions