Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Damovisa/dark high contrast inline code block #395

Merged
merged 3 commits into from
Oct 3, 2024

Conversation

Damovisa
Copy link
Contributor

@Damovisa Damovisa commented Oct 3, 2024

Describe your changes here.

Inline highlighted text in the Copilot Chat response was unreadable in the GitHub Dark High Contrast theme. This PR adds a missing background color for the textPreformat.background variable.

Closes #380

Screenshots

Before:
image

After:
image

Merge checklist

  • Added/updated colors
  • Added/updated documentation/README
  • Tested in GitHub Light Default theme

Take a look at the Contribute section for more information on how test your changes locally.

Copy link

changeset-bot bot commented Oct 3, 2024

🦋 Changeset detected

Latest commit: b7991c4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
github-vscode-theme Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Oct 3, 2024

Colors changed
--- base/themes/dark-colorblind.json	2024-10-03 02:06:44.674164603 +0000
+++ themes/dark-colorblind.json	2024-10-03 02:06:42.670144381 +0000
@@ -13,2 +13,3 @@
     "textPreformat.foreground": "#8b949e",
+    "textPreformat.background": "#6e768166",
     "textSeparator.foreground": "#21262d",
--- base/themes/dark-default.json	2024-10-03 02:06:44.674164603 +0000
+++ themes/dark-default.json	2024-10-03 02:06:42.670144381 +0000
@@ -13,2 +13,3 @@
     "textPreformat.foreground": "#7d8590",
+    "textPreformat.background": "#6e768166",
     "textSeparator.foreground": "#21262d",
--- base/themes/dark-dimmed.json	2024-10-03 02:06:44.674164603 +0000
+++ themes/dark-dimmed.json	2024-10-03 02:06:42.670144381 +0000
@@ -13,2 +13,3 @@
     "textPreformat.foreground": "#768390",
+    "textPreformat.background": "#636e7b66",
     "textSeparator.foreground": "#373e47",
--- base/themes/dark-high-contrast.json	2024-10-03 02:06:44.674164603 +0000
+++ themes/dark-high-contrast.json	2024-10-03 02:06:42.670144381 +0000
@@ -13,2 +13,3 @@
     "textPreformat.foreground": "#f0f3f6",
+    "textPreformat.background": "#9ea7b366",
     "textSeparator.foreground": "#7a828e",
--- base/themes/light-colorblind.json	2024-10-03 02:06:44.674164603 +0000
+++ themes/light-colorblind.json	2024-10-03 02:06:42.669144375 +0000
@@ -13,2 +13,3 @@
     "textPreformat.foreground": "#57606a",
+    "textPreformat.background": "#afb8c133",
     "textSeparator.foreground": "#d8dee4",
--- base/themes/light-default.json	2024-10-03 02:06:44.674164603 +0000
+++ themes/light-default.json	2024-10-03 02:06:42.669144375 +0000
@@ -13,2 +13,3 @@
     "textPreformat.foreground": "#656d76",
+    "textPreformat.background": "#afb8c133",
     "textSeparator.foreground": "#d8dee4",
--- base/themes/light-high-contrast.json	2024-10-03 02:06:44.674164603 +0000
+++ themes/light-high-contrast.json	2024-10-03 02:06:42.669144375 +0000
@@ -13,2 +13,3 @@
     "textPreformat.foreground": "#0e1116",
+    "textPreformat.background": "#acb6c033",
     "textSeparator.foreground": "#88929d",

Copy link
Contributor

@simurai simurai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks ❤️

Using the same as for textCodeBlock.background looks good to me. 👍

@simurai simurai merged commit 445d4b9 into main Oct 3, 2024
4 checks passed
@simurai simurai deleted the damovisa/dark-high-contrast-inline-code-block branch October 3, 2024 02:07
@primer-css primer-css mentioned this pull request Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inline code block is not readable when using GitHub Dark High Contrast theme
2 participants