Elffuss BraidHub

kikocis/continue public

improve styling for links
Changeset040cf01a16a5fab049886cba1dee3340a84ba78046a2ab46a2f0b2950c420a10
AuthorNate <sestinj@gmail.com> · 2025-06-27 00:01 -07:00
CommitterNate <sestinj@gmail.com> · 2025-06-27 00:01 -07:00
Parents3e6e41ae3d98

Browse the files at this changeset

3 files changed

modified gui/src/components/StyledMarkdownPreview/index.tsx +1 −2
@@ -77,14 +77,13 @@
7777 }
7878 word-wrap: break-word;
7979 border-radius: ${defaultBorderRadius};
80- background-color: ${vscEditorBackground};
80+ background-color: var(--vscode-textCodeBlock-background);
8181 font-size: ${getFontSize() - 2}px;
8282 font-family: var(--vscode-editor-font-family);
8383 }
8484
8585 code:not(pre > code) {
8686 font-family: var(--vscode-editor-font-family);
87- color: var(--vscode-input-placeholderForeground);
8887 }
8988
9089 background-color: ${(props) => props.bgColor};
modified gui/src/components/index.ts +3 −0
@@ -12,6 +12,9 @@
1212 export const vscButtonBackground = varWithFallback("primary-background");
1313 export const vscButtonForeground = varWithFallback("primary-foreground");
1414 export const vscEditorBackground = varWithFallback("editor-background");
15+export const vscTextCodeBlockBackground = varWithFallback(
16+ "textCodeBlockBackground",
17+);
1518 export const vscListActiveBackground = varWithFallback("list-active");
1619 export const vscFocusBorder = varWithFallback("border-focus");
1720 export const vscListActiveForeground = varWithFallback(
modified gui/src/styles/theme.ts +4 −0
@@ -140,6 +140,10 @@
140140 vars: ["--vscode-textLink-foreground"],
141141 default: "#5c9ce6", // medium blue
142142 },
143+ textCodeBlockBackground: {
144+ vars: ["--vscode-textCodeBlock-background"],
145+ default: "#1e1e1e", // same as editor-background
146+ },
143147 accent: {
144148 vars: ["--vscode-tab-activeBorderTop", "--vscode-focusBorder"],
145149 default: "#4d8bf0", // bright blue