Skip to content

Commit eae3f0d

Browse files
Copilotalexr00
andcommitted
Fix issue colors: use purple for closed issues instead of red
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent b6a7b2c commit eae3f0d

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/github/markdownUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function getIconMarkdown(issue: IssueModel) {
3838
return `<span style="color:#22863a;">$(issues)</span>`;
3939
}
4040
case GithubItemStateEnum.Closed: {
41-
return `<span style="color:#cb2431;">$(issue-closed)</span>`;
41+
return `<span style="color:#6f42c1;">$(issue-closed)</span>`;
4242
}
4343
}
4444
}

webviews/components/header.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,9 @@ export function getStatus(state: GithubItemStateEnum, isDraft: boolean, isIssue:
325325
} else if (state === GithubItemStateEnum.Open) {
326326
return isDraft ? { text: 'Draft', color: 'draft', icon: prDraftIcon } : { text: 'Open', color: 'open', icon: open };
327327
} else {
328-
return { text: 'Closed', color: 'closed', icon: closed };
328+
// Use different colors for closed issues vs closed PRs
329+
const closedColor = isIssue ? 'issue-closed' : 'closed';
330+
return { text: 'Closed', color: closedColor, icon: closed };
329331
}
330332
}
331333

webviews/editorWebview/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,10 @@ small-button {
603603
background-color: var(--vscode-pullRequests-closed);
604604
}
605605

606+
.status-badge-issue-closed {
607+
background-color: var(--vscode-pullRequests-merged);
608+
}
609+
606610
.status-badge-draft {
607611
background-color: var(--vscode-pullRequests-draft);
608612
}

0 commit comments

Comments
 (0)