added additional colour options for differing git staging statuses
This commit is contained in:
parent
da243dae47
commit
536652aab5
3 changed files with 33 additions and 0 deletions
|
@ -1922,6 +1922,33 @@
|
|||
"highContrast": "#E2C08D"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "gitDecoration.stageAddedResourceForeground",
|
||||
"description": "%colors.stageAdded%",
|
||||
"defaults": {
|
||||
"light": "#0a7a62",
|
||||
"dark": "#02c39a",
|
||||
"highContrast": "#00cea1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "gitDecoration.stageModifiedResourceForeground",
|
||||
"description": "%colors.stageModified%",
|
||||
"defaults": {
|
||||
"light": "#FF661F",
|
||||
"dark": "#FFAB85",
|
||||
"highContrast": "#ca541d"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "gitDecoration.stageDeletedResourceForeground",
|
||||
"description": "%colors.stageDeleted%",
|
||||
"defaults": {
|
||||
"light": "#ad0707",
|
||||
"dark": "#c74e39",
|
||||
"highContrast": "#c74e39"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "gitDecoration.deletedResourceForeground",
|
||||
"description": "%colors.deleted%",
|
||||
|
|
|
@ -168,6 +168,9 @@
|
|||
"submenu.stash": "Stash",
|
||||
"colors.added": "Color for added resources.",
|
||||
"colors.modified": "Color for modified resources.",
|
||||
"colors.stageAdded": "Color for resources which have been staged.",
|
||||
"colors.stageModified": "Color for resources which have been staged, but modified.",
|
||||
"colors.stageDeleted": "Color for resources which have been staged, but deleted.",
|
||||
"colors.deleted": "Color for deleted resources.",
|
||||
"colors.untracked": "Color for untracked resources.",
|
||||
"colors.ignored": "Color for ignored resources.",
|
||||
|
|
|
@ -205,12 +205,15 @@ export class Resource implements SourceControlResourceState {
|
|||
get color(): ThemeColor {
|
||||
switch (this.type) {
|
||||
case Status.INDEX_MODIFIED:
|
||||
return new ThemeColor('gitDecoration.stageModifiedResourceForeground');
|
||||
case Status.MODIFIED:
|
||||
return new ThemeColor('gitDecoration.modifiedResourceForeground');
|
||||
case Status.INDEX_DELETED:
|
||||
return new ThemeColor('gitDecoration.stageDeletedResourceForeground');
|
||||
case Status.DELETED:
|
||||
return new ThemeColor('gitDecoration.deletedResourceForeground');
|
||||
case Status.INDEX_ADDED:
|
||||
return new ThemeColor('gitDecoration.stageAddedResourceForeground');
|
||||
case Status.INTENT_TO_ADD:
|
||||
return new ThemeColor('gitDecoration.addedResourceForeground');
|
||||
case Status.INDEX_RENAMED:
|
||||
|
|
Loading…
Reference in a new issue