Function openIconTheme

Find index.theme file for given theme and create instance of IconThemeFile. The first found file will be used.

IconThemeFile openIconTheme(Range) (
  string themeName,
  Range searchIconDirs,
  IconThemeFile.IconThemeReadOptions options = IconThemeFile.IconThemeReadOptions.init
);

Returns

IconThemeFile object read from the first found index.theme file corresponding to given theme or null if none were found.

Parameters

NameDescription
themeName Theme name (as the base name of theme subdirectory).
searchIconDirs Base icon directories to search icon themes.
options options for IconThemeFile reading.

Throws

ErrnoException if file could not be opened. IniLikeException if error occured while reading the file.

See Also

findIconTheme, baseIconDirs