openThemeFamily

ditto, but firstly loads the given icon theme by name. Returns an empty array if theme specified by iconThemeName could not be loaded.

  1. IconThemeFile[] openThemeFamily(IconThemeFile iconTheme, Range searchIconDirs, string genericThemeName, IconThemeFile.IconThemeReadOptions options)
  2. IconThemeFile[] openThemeFamily(string iconThemeName, Range searchIconDirs, string genericThemeName, IconThemeFile.IconThemeReadOptions options)
    openThemeFamily
    (
    Range
    )
    if (
    isForwardRange!Range &&
    is(ElementType!Range : string)
    )

Examples

auto iconThemes = openThemeFamily("NewTango", ["test"]);

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

iconThemes = openThemeFamily("NewTango", ["test"], null);
assert(iconThemes.length == 2);
assert(iconThemes[0].internalName() == "NewTango");
assert(iconThemes[1].internalName() == "Tango");

Meta