Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3864dbf

Browse files
committed
Remove custom colors and rely on inbuilt colors for better theme support
1 parent d09581c commit 3864dbf

File tree

2 files changed

+3
-32
lines changed

2 files changed

+3
-32
lines changed

package.json

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -674,35 +674,6 @@
674674
}
675675
}
676676
}
677-
],
678-
"colors": [
679-
{
680-
"id": "problems.difficulty.badge.easy",
681-
"description": "Color for easy problems badge",
682-
"defaults": {
683-
"light": "#00b8a3",
684-
"dark": "#00b8a3",
685-
"highContrast": "#00b8a3"
686-
}
687-
},
688-
{
689-
"id": "problems.difficulty.badge.medium",
690-
"description": "Color for medium level problems badge",
691-
"defaults": {
692-
"light": "#ffc01e",
693-
"dark": "#ffc01e",
694-
"highContrast": "#ffc01e"
695-
}
696-
},
697-
{
698-
"id": "problems.difficulty.badge.hard",
699-
"description": "Color for hard problems badge",
700-
"defaults": {
701-
"light": "#ff375f",
702-
"dark": "#ff375f",
703-
"highContrast": "#ff375f"
704-
}
705-
}
706677
]
707678
},
708679
"scripts": {

src/explorer/LeetCodeTreeItemDecorationProvider.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ export class LeetCodeTreeItemDecorationProvider implements FileDecorationProvide
99
};
1010

1111
private readonly ITEM_COLOR: { [key: string]: ThemeColor } = {
12-
easy: new ThemeColor("problems.difficulty.badge.easy"),
13-
medium: new ThemeColor("problems.difficulty.badge.medium"),
14-
hard: new ThemeColor("problems.difficulty.badge.hard"),
12+
easy: new ThemeColor("charts.green"),
13+
medium: new ThemeColor("charts.yellow"),
14+
hard: new ThemeColor("charts.red"),
1515
};
1616

1717
public provideFileDecoration(uri: Uri): ProviderResult<FileDecoration> {

0 commit comments

Comments
 (0)