提交 cf9726da 编写于 作者: M Martin Aeschlimann

Root folders need a different icon as regular folders. For #30998

上级 159fa624
......@@ -153,6 +153,8 @@ interface IconsAssociation {
folder?: string;
file?: string;
folderExpanded?: string;
rootFolder?: string;
rootFolderExpanded?: string;
folderNames?: { [folderName: string]: string; };
folderNamesExpanded?: { [folderName: string]: string; };
fileExtensions?: { [extension: string]: string; };
......@@ -805,6 +807,19 @@ function _processIconThemeDocument(id: string, iconThemeDocumentPath: string, ic
result.hasFolderIcons = true;
}
let rootFolder = associations.rootFolder || associations.folder;
let rootFolderExpanded = associations.rootFolderExpanded || associations.folderExpanded;
if (rootFolder) {
addSelector(`${qualifier} .rootfolder-icon::before`, rootFolder);
result.hasFolderIcons = true;
}
if (rootFolderExpanded) {
addSelector(`${qualifier} ${expanded} .rootfolder-icon::before`, rootFolderExpanded);
result.hasFolderIcons = true;
}
if (associations.file) {
addSelector(`${qualifier} .file-icon::before`, associations.file);
result.hasFileIcons = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册