From 015f13d4ed101ed5ceb1de99d99522d2169c02df Mon Sep 17 00:00:00 2001 From: Alex Ross <38270282+alexr00@users.noreply.github.com> Date: Fri, 3 Jul 2026 15:16:31 +0200 Subject: [PATCH] Better colors in the notifications view --- src/notifications/notificationsManager.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/notifications/notificationsManager.ts b/src/notifications/notificationsManager.ts index 049e23460f..54e5dac295 100644 --- a/src/notifications/notificationsManager.ts +++ b/src/notifications/notificationsManager.ts @@ -124,11 +124,15 @@ export class NotificationsManager extends Disposable implements vscode.TreeDataP if (notification.subject.type === NotificationSubjectType.Issue && model instanceof IssueModel) { item.iconPath = element.model.isOpen ? new vscode.ThemeIcon('issues', new vscode.ThemeColor('issues.open')) - : new vscode.ThemeIcon('issue-closed', new vscode.ThemeColor('github.issues.closed')); + : (model.stateReason && model.stateReason !== 'COMPLETED' + ? new vscode.ThemeIcon('issue-closed', new vscode.ThemeColor('pullRequests.draft')) + : new vscode.ThemeIcon('issue-closed', new vscode.ThemeColor('github.issues.closed'))); } if (notification.subject.type === NotificationSubjectType.PullRequest && model instanceof PullRequestModel) { item.iconPath = model.isOpen - ? new vscode.ThemeIcon('git-pull-request', new vscode.ThemeColor('pullRequests.open')) + ? (model.isDraft + ? new vscode.ThemeIcon('git-pull-request-draft', new vscode.ThemeColor('pullRequests.draft')) + : new vscode.ThemeIcon('git-pull-request', new vscode.ThemeColor('pullRequests.open'))) : (model.isMerged ? new vscode.ThemeIcon('git-pull-request', new vscode.ThemeColor('pullRequests.merged')) : new vscode.ThemeIcon('git-pull-request-closed', new vscode.ThemeColor('pullRequests.closed')));