openBaseThemes

Recursively find all themes the given theme is inherited from.

Parameters

iconTheme IconThemeFile

Original icon theme to search for its base themes. It's NOT included in the resulting array. Must be not null.

searchIconDirs Range

Base icon directories to search icon themes.

genericThemeName string

Name of icon theme which is loaded the last even if it's not specified in inheritance tree. Pass empty string to avoid it. It's NOT loaded twice if some theme in inheritance tree has it as base theme. Usually you don't need to change this parameter since hicolor is required to be used by specification.

options IconThemeFile.IconThemeReadOptions

Options for icontheme.file.IconThemeFile reading.

Return Value

Array of unique icontheme.file.IconThemeFile objects represented base themes.

Examples

auto tango = openIconTheme("NewTango", ["test"]);
auto baseThemes = openBaseThemes(tango, ["test"]);

assert(baseThemes.length == 2);
assert(baseThemes[0].internalName() == "Tango");
assert(baseThemes[1].internalName() == "hicolor");

baseThemes = openBaseThemes(tango, ["test"], null);
assert(baseThemes.length == 1);
assert(baseThemes[0].internalName() == "Tango");

See Also

Meta