vscode-material-icon-theme icon indicating copy to clipboard operation
vscode-material-icon-theme copied to clipboard

[Feature Request] Folder colour inheritance

Open wcoots opened this issue 1 year ago • 6 comments

Currently it seems that folders without a specified colour use the default colour. It would be great to see an option for a folder's colour to be inherited from the parent folder if the parent folder has a specified colour.

For example the components folder is green, so all of the folders inside this directory are also green, perhaps only at the top level and not for sub-directories?

Current: current

Proposed: proposed

wcoots avatar Apr 18 '24 13:04 wcoots

This would be a nice option, but unfortunately I can't think of an easy way to implement it with the current vscode icons API.

lucas-labs avatar Apr 20 '24 10:04 lucas-labs

🤔 What about this!

image

arv-anshul avatar May 17 '24 08:05 arv-anshul

🤔 What about this!

What are you proposing?

lucas-labs avatar May 17 '24 17:05 lucas-labs

What are you proposing?

@lucas-labs My concern is, what if we have sub-folders which has its own folder icon and colour. How can we deal with.

Do we just change sub-folder's colour and keep the icon as it is? 🤔

arv-anshul avatar May 18 '24 01:05 arv-anshul

It would be so cool if one would be able to set something like:


 "material-icon-theme.folders.customClones": [
    {
      "name": "my_inheriting_folder",
      "base": "src",
      "color": "orange",
      "lightColor": "orange",

      "colorInheritance": ["folder1/*"],
      // or
      "colorInheritance": ["folder1/**"],
      
      "folderNames": ["folder1"],
      "rootFolderNames": ["folder1"]
    },
  ]

and all folders child of that name would inherit the color.

dadoming avatar Feb 14 '25 15:02 dadoming

Icons don't have context of their parents or children

mallowigi avatar Feb 15 '25 11:02 mallowigi