iconThemePaths

Find all icon themes in searchIconDirs. Note: You may want to skip icon themes duplicates if there're different versions of the index.theme file for the same theme.

iconThemePaths
(
Range
)
if (
is(ElementType!Range : string)
)

Parameters

searchIconDirs Range

base icon directories to search icon themes.

Return Value

Type: auto

Range of paths to index.theme files represented icon themes.

Examples

auto paths = iconThemePaths(["test"]).array;
assert(paths.length == 3);
assert(paths.canFind(buildPath("test", "NewTango", "index.theme")));
assert(paths.canFind(buildPath("test", "Tango", "index.theme")));
assert(paths.canFind(buildPath("test", "hicolor", "index.theme")));

See Also

icontheme.paths.baseIconDirs

Meta