Merge pull request #283784 from microsoft/mrleemurray/tragic-gayal-turquoise

Add text preformat border high contrast color
This commit is contained in:
Lee Murray
2025-12-17 11:24:20 +00:00
committed by GitHub
7 changed files with 11 additions and 3 deletions
@@ -870,6 +870,7 @@
"--vscode-textLink-foreground",
"--vscode-textPreformat-background",
"--vscode-textPreformat-foreground",
"--vscode-textPreformat-border",
"--vscode-textSeparator-foreground",
"--vscode-titleBar-activeBackground",
"--vscode-titleBar-activeForeground",
@@ -65,13 +65,15 @@ export const textSeparatorForeground = registerColor('textSeparator.foreground',
// ------ text preformat
export const textPreformatForeground = registerColor('textPreformat.foreground',
{ light: '#A31515', dark: '#D7BA7D', hcDark: '#000000', hcLight: '#FFFFFF' },
{ light: '#A31515', dark: '#D7BA7D', hcDark: '#FFFFFF', hcLight: '#FFFFFF' },
nls.localize('textPreformatForeground', "Foreground color for preformatted text segments."));
export const textPreformatBackground = registerColor('textPreformat.background',
{ light: '#0000001A', dark: '#FFFFFF1A', hcDark: '#FFFFFF', hcLight: '#09345f' },
{ light: '#0000001A', dark: '#FFFFFF1A', hcDark: null, hcLight: '#09345f' },
nls.localize('textPreformatBackground', "Background color for preformatted text segments."));
export const textPreformatBorder = registerColor('textPreformat.border',
{ light: null, dark: null, hcDark: contrastBorder, hcLight: null },
nls.localize('textPreformatBorder', "Border color for preformatted text segments."));
// ------ text block quote
@@ -62,6 +62,7 @@
background-color: var(--vscode-textPreformat-background);
padding: 1px 3px;
border-radius: 4px;
border: 1px solid var(--vscode-textPreformat-border);
white-space: pre-wrap;
}
}
@@ -627,6 +627,7 @@ have to be updated for changes to the rules above, or to support more deeply nes
background-color: var(--vscode-textPreformat-background);
padding: 1px 3px;
border-radius: 4px;
border: 1px solid var(--vscode-textPreformat-border);
white-space: pre-wrap;
}
}
@@ -173,6 +173,7 @@
background-color: var(--vscode-textPreformat-background);
padding: 1px 3px;
border-radius: 4px;
border: 1px solid var(--vscode-textPreformat-border);
}
.monaco-workbench .notebookOverlay .cell-chat-part .inline-chat .markdownMessage .message .interactive-result-code-block {
@@ -609,6 +609,7 @@
background-color: var(--vscode-textPreformat-background);
padding: 1px 3px;
border-radius: 4px;
border: 1px solid var(--vscode-textPreformat-border);
}
.settings-editor > .settings-body .settings-tree-container .setting-item-contents .setting-item-markdown .monaco-tokenized-source {
@@ -155,6 +155,7 @@
color: var(--vscode-textPreformat-foreground);
background-color: var(--vscode-textPreformat-background);
border-radius: 3px;
border: 1px solid var(--vscode-textPreformat-border);
}
.monaco-workbench .part.editor > .content .walkThroughContent .monaco-editor {