Vscode: [themes] icon color based on file modification state

Created on 6 Dec 2017  Â·  5Comments  Â·  Source: microsoft/vscode

Feature Request: need colorless icons when not modified.

May be some theme or extension api can do this?

When a file is not modified, git status show file in white color, but file's left icons shows too many colors.

May have one setting that can control this, to set a default icon color to same as file name's color.

now:
image
to:
image

Will look cleaner

*out-of-scope feature-request themes

Most helpful comment

Actually what we need as theme authors is another entry in the icons schema (configuration) to enable that. Something in the lines of:

"iconDefinitions": {
    "_file_scm_unmodified": {
         "iconPath": "./images/File_16x_inverse.svg"
    }
    "_folder_scm_unmodified": {
        "iconPath": "./images/Folder_16x_inverse.svg"
    }
    "_folder_open_scm_unmodified": {
        "iconPath": "./images/Folder_open_16x_inverse.svg"
    }
    ...,
    "fileScmUnmodifed" : "_file_scm_unmodified",
    "folderScmUnmodified" : "_folder_scm_unmodified",
    "folderExpandedScmUnmodified" : "_folder_open_scm_unmodified",
    ...,
}

with the addition of the other scm states.

All 5 comments

The color is set for the whole element but the icons over rule that

Actually what we need as theme authors is another entry in the icons schema (configuration) to enable that. Something in the lines of:

"iconDefinitions": {
    "_file_scm_unmodified": {
         "iconPath": "./images/File_16x_inverse.svg"
    }
    "_folder_scm_unmodified": {
        "iconPath": "./images/Folder_16x_inverse.svg"
    }
    "_folder_open_scm_unmodified": {
        "iconPath": "./images/Folder_open_16x_inverse.svg"
    }
    ...,
    "fileScmUnmodifed" : "_file_scm_unmodified",
    "folderScmUnmodified" : "_folder_scm_unmodified",
    "folderExpandedScmUnmodified" : "_folder_open_scm_unmodified",
    ...,
}

with the addition of the other scm states.

I corrected the proposed schema cause the original was supporting the opposite of the OP request.

I'd be also great if ‘activated’ icons could be of the same color as the git status – this looks even cleaner:
image

I'm used to such ‘calm’ icon theme in Atom and would be pleased to see the same low level of visual noise in VSCode! Looked through the available icon themes, but could not find any.


__UPD__: Here's how things look in Atom with file-icons package:

screen shot 2018-02-07 at 15 42 58
screen shot 2018-02-07 at 15 43 14

screen shot 2018-02-07 at 15 46 16


__UPD2__: Found a ported version of file-icons for vscode: https://github.com/file-icons/vscode. It has a colourless theme, which is great, but still not quite the same as a wider API option you're discussing:

screen shot 2018-02-07 at 15 49 00
screen shot 2018-02-07 at 15 49 38

This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding and happy coding!

Was this page helpful?
0 / 5 - 0 ratings