Changesets · Branches · Tags · Compare
| Changeset | 040cf01a16a5fab049886cba1dee3340a84ba78046a2ab46a2f0b2950c420a10 |
|---|---|
| Author | Nate <sestinj@gmail.com> · 2025-06-27 00:01 -07:00 |
| Committer | Nate <sestinj@gmail.com> · 2025-06-27 00:01 -07:00 |
| Parents | 3e6e41ae3d98 |
3 files changed
modified gui/src/components/StyledMarkdownPreview/index.tsx +1 −2
| @@ -77,14 +77,13 @@ | ||
| 77 | 77 | } |
| 78 | 78 | word-wrap: break-word; |
| 79 | 79 | border-radius: ${defaultBorderRadius}; |
| 80 | - background-color: ${vscEditorBackground}; | |
| 80 | + background-color: var(--vscode-textCodeBlock-background); | |
| 81 | 81 | font-size: ${getFontSize() - 2}px; |
| 82 | 82 | font-family: var(--vscode-editor-font-family); |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | code:not(pre > code) { |
| 86 | 86 | font-family: var(--vscode-editor-font-family); |
| 87 | - color: var(--vscode-input-placeholderForeground); | |
| 88 | 87 | } |
| 89 | 88 | |
| 90 | 89 | background-color: ${(props) => props.bgColor}; |
modified gui/src/components/index.ts +3 −0
| @@ -12,6 +12,9 @@ | ||
| 12 | 12 | export const vscButtonBackground = varWithFallback("primary-background"); |
| 13 | 13 | export const vscButtonForeground = varWithFallback("primary-foreground"); |
| 14 | 14 | export const vscEditorBackground = varWithFallback("editor-background"); |
| 15 | +export const vscTextCodeBlockBackground = varWithFallback( | |
| 16 | + "textCodeBlockBackground", | |
| 17 | +); | |
| 15 | 18 | export const vscListActiveBackground = varWithFallback("list-active"); |
| 16 | 19 | export const vscFocusBorder = varWithFallback("border-focus"); |
| 17 | 20 | export const vscListActiveForeground = varWithFallback( |
modified gui/src/styles/theme.ts +4 −0
| @@ -140,6 +140,10 @@ | ||
| 140 | 140 | vars: ["--vscode-textLink-foreground"], |
| 141 | 141 | default: "#5c9ce6", // medium blue |
| 142 | 142 | }, |
| 143 | + textCodeBlockBackground: { | |
| 144 | + vars: ["--vscode-textCodeBlock-background"], | |
| 145 | + default: "#1e1e1e", // same as editor-background | |
| 146 | + }, | |
| 143 | 147 | accent: { |
| 144 | 148 | vars: ["--vscode-tab-activeBorderTop", "--vscode-focusBorder"], |
| 145 | 149 | default: "#4d8bf0", // bright blue |