Skip to content

Commit ec7dfb2

Browse files
committed
style(command): update icon paths and improve file decoration colors
- Changed icon path for multi-git folder command to use a new ThemeIcon for better clarity. - Updated file decoration colors in worktree to use terminal colors for improved visibility.
1 parent 932128b commit ec7dfb2

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

src/core/command/removeMultiFavoriteCmd.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import { IRecentItem } from '@/types';
77

88
export const removeMultiFavoriteCmd = async () => {
99
const items: (vscode.QuickPickItem & { description: string; path: string })[] = getFavoriteCache().map((item) => {
10-
const uri = vscode.Uri.parse(item.path);
1110
return {
1211
iconPath: getRecentItemIcon(item.type),
12+
resourceUri: vscode.Uri.file(item.path),
1313
label: item.label,
14-
description: uri.fsPath,
14+
description: vscode.Uri.parse(item.path).fsPath,
1515
path: item.path,
1616
};
1717
});

src/core/command/removeMultiGitFolderCmd.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ import { toSimplePath } from '@/core/util/folder';
66
import { IFolderItemConfig } from '@/types';
77

88
export const removeMultiGitFolderCmd = async () => {
9+
const iconPath = new vscode.ThemeIcon('repo');
910
const items: (vscode.QuickPickItem & { description: string })[] = getFolderConfig().map((item) => {
1011
return {
11-
iconPath: vscode.ThemeIcon.Folder,
12+
iconPath,
1213
label: item.name,
1314
description: item.path,
1415
};

src/core/util/worktree.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ export class WorktreeDecorator implements vscode.FileDecorationProvider {
2121
case 'ahead':
2222
return {
2323
badge: '▲',
24-
color: new vscode.ThemeColor('charts.green'),
24+
color: new vscode.ThemeColor('terminal.ansiGreen'),
2525
tooltip: 'Ahead',
2626
};
2727
case 'behind':
2828
return {
2929
badge: '▼',
30-
color: new vscode.ThemeColor('charts.orange'),
30+
color: new vscode.ThemeColor('terminal.ansiYellow'),
3131
tooltip: 'Behind',
3232
};
3333
case 'diverged':
3434
return {
3535
badge: '▼▲',
36-
color: new vscode.ThemeColor('charts.yellow'),
36+
color: new vscode.ThemeColor('terminal.ansiBrightYellow'),
3737
tooltip: 'Diverged',
3838
};
3939
default:

0 commit comments

Comments
 (0)