added additional colour options for differing git staging statuses

This commit is contained in:
michaelwood@onetrail.com
2020-09-23 20:31:30 +02:00
parent da243dae47
commit 536652aab5
3 changed files with 33 additions and 0 deletions

View File

@@ -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: