Skip to content

Commit 015f13d

Browse files
committed
Better colors in the notifications view
1 parent 4209543 commit 015f13d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/notifications/notificationsManager.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,15 @@ export class NotificationsManager extends Disposable implements vscode.TreeDataP
124124
if (notification.subject.type === NotificationSubjectType.Issue && model instanceof IssueModel) {
125125
item.iconPath = element.model.isOpen
126126
? new vscode.ThemeIcon('issues', new vscode.ThemeColor('issues.open'))
127-
: new vscode.ThemeIcon('issue-closed', new vscode.ThemeColor('github.issues.closed'));
127+
: (model.stateReason && model.stateReason !== 'COMPLETED'
128+
? new vscode.ThemeIcon('issue-closed', new vscode.ThemeColor('pullRequests.draft'))
129+
: new vscode.ThemeIcon('issue-closed', new vscode.ThemeColor('github.issues.closed')));
128130
}
129131
if (notification.subject.type === NotificationSubjectType.PullRequest && model instanceof PullRequestModel) {
130132
item.iconPath = model.isOpen
131-
? new vscode.ThemeIcon('git-pull-request', new vscode.ThemeColor('pullRequests.open'))
133+
? (model.isDraft
134+
? new vscode.ThemeIcon('git-pull-request-draft', new vscode.ThemeColor('pullRequests.draft'))
135+
: new vscode.ThemeIcon('git-pull-request', new vscode.ThemeColor('pullRequests.open')))
132136
: (model.isMerged
133137
? new vscode.ThemeIcon('git-pull-request', new vscode.ThemeColor('pullRequests.merged'))
134138
: new vscode.ThemeIcon('git-pull-request-closed', new vscode.ThemeColor('pullRequests.closed')));

0 commit comments

Comments
 (0)