Skip to content

Commit d037ac0

Browse files
authored
Merge pull request microsoft#197124 from microsoft/dev/joyceerhl/varied-panda
fix: restore Dark Modern preformat foreground
2 parents 60182c7 + 81836ab commit d037ac0

File tree

5 files changed

+3
-6
lines changed

5 files changed

+3
-6
lines changed

extensions/theme-defaults/themes/dark_modern.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
"textCodeBlock.background": "#2B2B2B",
114114
"textLink.activeForeground": "#4daafc",
115115
"textLink.foreground": "#4daafc",
116-
"textPreformat.foreground": "#D0D0D0",
116+
"textPreformat.foreground": "#D7BA7D",
117117
"textPreformat.background": "#3C3C3C",
118118
"textSeparator.foreground": "#21262D",
119119
"titleBar.activeBackground": "#181818",

extensions/theme-defaults/themes/light_modern.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
"textCodeBlock.background": "#F8F8F8",
132132
"textLink.activeForeground": "#005FB8",
133133
"textLink.foreground": "#005FB8",
134-
"textPreformat.foreground": "#3B3B3B",
134+
"textPreformat.foreground": "#A31515",
135135
"textPreformat.background": "#0000001F",
136136
"textSeparator.foreground": "#21262D",
137137
"titleBar.activeBackground": "#F8F8F8",

src/vs/platform/theme/common/colorRegistry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export const selectionBackground = registerColor('selection.background', { light
227227
export const textSeparatorForeground = registerColor('textSeparator.foreground', { light: '#0000002e', dark: '#ffffff2e', hcDark: Color.black, hcLight: '#292929' }, nls.localize('textSeparatorForeground', "Color for text separators."));
228228
export const textLinkForeground = registerColor('textLink.foreground', { light: '#006AB1', dark: '#3794FF', hcDark: '#3794FF', hcLight: '#0F4A85' }, nls.localize('textLinkForeground', "Foreground color for links in text."));
229229
export const textLinkActiveForeground = registerColor('textLink.activeForeground', { light: '#006AB1', dark: '#3794FF', hcDark: '#3794FF', hcLight: '#0F4A85' }, nls.localize('textLinkActiveForeground', "Foreground color for links in text when clicked on and on mouse hover."));
230-
export const textPreformatForeground = registerColor('textPreformat.foreground', { light: '#A31515', dark: '#D7BA7D', hcDark: '#000000', hcLight: '#FFFFFF' }, nls.localize('textPreformatForeground', "Foreground color for preformatted text segments."));
230+
export const textPreformatForeground = registerColor('textPreformat.foreground', { light: '#A31515', dark: '#D7BA7D', hcDark: '#D7BA7D', hcLight: '#292929' }, nls.localize('textPreformatForeground', "Foreground color for preformatted text segments."));
231231
export const textPreformatBackground = registerColor('textPreformat.background', { light: '#0000001A', dark: '#FFFFFF1A', hcDark: '#FFFFFF', hcLight: '#09345f' }, nls.localize('textPreformatBackground', "Background color for preformatted text segments."));
232232
export const textBlockQuoteBackground = registerColor('textBlockQuote.background', { light: '#f2f2f2', dark: '#222222', hcDark: null, hcLight: '#F2F2F2' }, nls.localize('textBlockQuoteBackground', "Background color for block quotes in text."));
233233
export const textBlockQuoteBorder = registerColor('textBlockQuote.border', { light: '#007acc80', dark: '#007acc80', hcDark: Color.white, hcLight: '#292929' }, nls.localize('textBlockQuoteBorder', "Border color for block quotes in text."));

src/vs/workbench/contrib/chat/browser/media/chat.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@
244244
font-family: var(--monaco-monospace-font);
245245
font-size: 12px;
246246
color: var(--vscode-textPreformat-foreground);
247-
background-color: var(--vscode-textPreformat-background);
248247
padding: 1px 3px;
249248
border-radius: 4px;
250249
}

src/vs/workbench/contrib/preferences/browser/media/settingsEditor2.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,6 @@
533533
font-family: var(--monaco-monospace-font);
534534
font-size: 11px;
535535
color: var(--vscode-textPreformat-foreground);
536-
background-color: var(--vscode-textPreformat-background);
537536
padding: 1px 3px;
538537
border-radius: 4px;
539538
}
@@ -604,7 +603,6 @@
604603
font-family: var(--monaco-monospace-font);
605604
font-size: 12px;
606605
color: var(--vscode-textPreformat-foreground);
607-
background-color: var(--vscode-textPreformat-background);
608606
padding: 2px 5px;
609607
border-radius: 4px;
610608
}

0 commit comments

Comments
 (0)