openBaseThemes

Recursively find all themes the given theme is inherited from.

openBaseThemes
(
Range
)
if (
isForwardRange!Range &&
is(ElementType!Range : string)
)

Parameters

iconTheme IconThemeFile

Original icon theme to search for its base themes. Included as first element in resulting array.

searchIconDirs Range

Base icon directories to search icon themes.

fallbackThemeName string

Name of fallback theme which is loaded the last. Not used if empty. It's NOT loaded twice if some theme in inheritance tree has it as base theme.

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");

Meta