diff --git a/package.json b/package.json index af4f757858..c6bd57a5ca 100644 --- a/package.json +++ b/package.json @@ -2667,6 +2667,16 @@ }, "description": "The color used for indicating that a pull request is merged." }, + { + "id": "pullRequests.statusMergedForeground", + "defaults": { + "dark": "pullRequests.statusOpenForeground", + "light": "pullRequests.statusOpenForeground", + "highContrast": "editor.foreground", + "highContrastLight": "editor.foreground" + }, + "description": "The foreground color used for the status badge indicating that a pull request is merged." + }, { "id": "pullRequests.draft", "defaults": { @@ -2677,6 +2687,16 @@ }, "description": "The color used for indicating that a pull request is a draft." }, + { + "id": "pullRequests.statusDraftForeground", + "defaults": { + "dark": "pullRequests.statusOpenForeground", + "light": "pullRequests.statusOpenForeground", + "highContrast": "editor.foreground", + "highContrastLight": "editor.foreground" + }, + "description": "The foreground color used for the status badge indicating that a pull request is draft." + }, { "id": "pullRequests.open", "defaults": { @@ -2687,6 +2707,16 @@ }, "description": "The color used for indicating that a pull request is open." }, + { + "id": "pullRequests.statusOpenForeground", + "defaults": { + "dark": "#ffffff", + "light": "#000000", + "highContrast": "editor.foreground", + "highContrastLight": "editor.foreground" + }, + "description": "The foreground color used for the status badge indicating that a pull request is open." + }, { "id": "pullRequests.closed", "defaults": { @@ -2697,6 +2727,16 @@ }, "description": "The color used for indicating that a pull request is closed." }, + { + "id": "pullRequests.statusClosedForeground", + "defaults": { + "dark": "pullRequests.statusOpenForeground", + "light": "pullRequests.statusOpenForeground", + "highContrast": "editor.foreground", + "highContrastLight": "editor.foreground" + }, + "description": "The foreground color used for the status badge indicating that a pull request is closed." + }, { "id": "pullRequests.notification", "defaults": { diff --git a/webviews/editorWebview/index.css b/webviews/editorWebview/index.css index 44037dc6c7..0e44debcc3 100644 --- a/webviews/editorWebview/index.css +++ b/webviews/editorWebview/index.css @@ -463,7 +463,6 @@ body button .icon { #status { box-sizing: border-box; line-height: 18px; - color: var(--vscode-button-foreground); border-radius: 18px; padding: 4px 12px; margin-right: 10px; @@ -488,18 +487,22 @@ body button .icon { .status-badge-merged { background-color: var(--vscode-pullRequests-merged); + color: var(--vscode-pullRequests-statusMergedForeground); } .status-badge-open { background-color: var(--vscode-pullRequests-open); + color: var(--vscode-pullRequests-statusOpenForeground); } .status-badge-closed { background-color: var(--vscode-pullRequests-closed); + color: var(--vscode-pullRequests-statusClosedForeground); } .status-badge-draft { background-color: var(--vscode-pullRequests-draft); + color: var(--vscode-pullRequests-statusDraftForeground); } .section {