Sfoglia il codice sorgente

Aligns file decoration colors to vscode

main
Eric Amodio 4 anni fa
parent
commit
c68a3e61b0
2 ha cambiato i file con 56 aggiunte e 11 eliminazioni
  1. +51
    -6
      package.json
  2. +5
    -5
      src/views/viewDecorationProvider.ts

+ 51
- 6
package.json Vedi File

@ -2809,21 +2809,66 @@
}
},
{
"id": "gitlens.decorations.addedForegroundColor",
"description": "Specifies the decoration foreground color of added files",
"defaults": {
"light": "gitDecoration.addedResourceForeground",
"dark": "gitDecoration.addedResourceForeground",
"highContrast": "gitDecoration.addedResourceForeground"
}
},
{
"id": "gitlens.decorations.copiedForegroundColor",
"description": "Specifies the decoration foreground color of copied files",
"defaults": {
"light": "#007100",
"dark": "#73C991",
"highContrast": "#73C991"
"light": "gitDecoration.renamedResourceForeground",
"dark": "gitDecoration.renamedResourceForeground",
"highContrast": "gitDecoration.renamedResourceForeground"
}
},
{
"id": "gitlens.decorations.deletedForegroundColor",
"description": "Specifies the decoration foreground color of deleted files",
"defaults": {
"light": "gitDecoration.deletedResourceForeground",
"dark": "gitDecoration.deletedResourceForeground",
"highContrast": "gitDecoration.deletedResourceForeground"
}
},
{
"id": "gitlens.decorations.ignoredForegroundColor",
"description": "Specifies the decoration foreground color of ignored files",
"defaults": {
"light": "gitDecoration.ignoredResourceForeground",
"dark": "gitDecoration.ignoredResourceForeground",
"highContrast": "gitDecoration.ignoredResourceForeground"
}
},
{
"id": "gitlens.decorations.modifiedForegroundColor",
"description": "Specifies the decoration foreground color of modified files",
"defaults": {
"light": "gitDecoration.modifiedResourceForeground",
"dark": "gitDecoration.modifiedResourceForeground",
"highContrast": "gitDecoration.modifiedResourceForeground"
}
},
{
"id": "gitlens.decorations.untrackedForegroundColor",
"description": "Specifies the decoration foreground color of untracked files",
"defaults": {
"light": "gitDecoration.untrackedResourceForeground",
"dark": "gitDecoration.untrackedResourceForeground",
"highContrast": "gitDecoration.untrackedResourceForeground"
}
},
{
"id": "gitlens.decorations.renamedForegroundColor",
"description": "Specifies the decoration foreground color of renamed files",
"defaults": {
"light": "#007100",
"dark": "#73C991",
"highContrast": "#73C991"
"light": "gitDecoration.renamedResourceForeground",
"dark": "gitDecoration.renamedResourceForeground",
"highContrast": "gitDecoration.renamedResourceForeground"
}
},
{

+ 5
- 5
src/views/viewDecorationProvider.ts Vedi File

@ -58,19 +58,19 @@ export class ViewFileDecorationProvider implements FileDecorationProvider, Dispo
case '!':
return {
badge: 'I',
color: new ThemeColor('gitDecoration.ignoredResourceForeground'),
color: new ThemeColor('gitlens.decorations.ignoredForegroundColor'),
tooltip: 'Ignored',
};
case '?':
return {
badge: 'U',
color: new ThemeColor('gitDecoration.untrackedResourceForeground'),
color: new ThemeColor('gitlens.decorations.untrackedForegroundColor'),
tooltip: 'Untracked',
};
case 'A':
return {
badge: 'A',
color: new ThemeColor('gitDecoration.addedResourceForeground'),
color: new ThemeColor('gitlens.decorations.addedForegroundColor'),
tooltip: 'Added',
};
case 'C':
@ -82,13 +82,13 @@ export class ViewFileDecorationProvider implements FileDecorationProvider, Dispo
case 'D':
return {
badge: 'D',
color: new ThemeColor('gitDecoration.deletedResourceForeground'),
color: new ThemeColor('gitlens.decorations.deletedForegroundColor'),
tooltip: 'Deleted',
};
case 'M':
return {
badge: 'M',
// color: new ThemeColor('gitDecoration.modifiedResourceForeground'),
// color: new ThemeColor('gitlens.decorations.modifiedForegroundColor'),
tooltip: 'Modified',
};
case 'R':

||||||
x
 
000:0
Caricamento…
Annulla
Salva