From 0f528fbf10e1348831c43f9723655d010a024c02 Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Sat, 9 Dec 2023 19:26:23 +0800 Subject: [PATCH] Update colors --- source/github-issue-link-status.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source/github-issue-link-status.js b/source/github-issue-link-status.js index 749f198..f6cccec 100644 --- a/source/github-issue-link-status.js +++ b/source/github-issue-link-status.js @@ -9,13 +9,13 @@ const endpoint = location.hostname === 'github.com' const issueUrlRegex = /^[/]([^/]+[/][^/]+)[/](issues|pull)[/](\d+)([/]|$)/; const stateColorMap = { pullrequest: { - open: ['text-green', 'color-text-success', 'color-fg-success'], - closed: ['text-red', 'color-text-danger', 'color-fg-danger'], - merged: ['text-purple', 'color-purple-5', 'color-fg-done'], + open: 'color-fg-success', + closed: 'color-fg-danger', + merged: 'color-fg-done', }, issue: { - open: ['text-green', 'color-text-success', 'color-fg-success'], - closed: ['text-purple', 'color-purple-5', 'color-fg-done'], + open: 'color-fg-success', + closed: 'color-fg-done', }, }; @@ -27,7 +27,7 @@ function getIcon(state, type, isDraft = false) { } if (iconName === 'draftpullrequest') { - return icons.draftpullrequest.replace('