Markdown: quiet headings and links, plan-coloured code spans
This commit is contained in:
1 parent
13675858e8
commit
1a868ec10b
1 file changed
+10
-5
+10
-5
@@ -10,6 +10,8 @@ const DARK = {
|
|||||||
panel: "#141414",
|
panel: "#141414",
|
||||||
/** Raised blocks on a panel or the background: the composer, your messages, tool output. */
|
/** Raised blocks on a panel or the background: the composer, your messages, tool output. */
|
||||||
element: "#1e1e1e",
|
element: "#1e1e1e",
|
||||||
|
/** A raised block under the pointer: one step up from element. */
|
||||||
|
elementHover: "#282828",
|
||||||
border: "#3c3c3c",
|
border: "#3c3c3c",
|
||||||
borderFocused: "#5c9cf5",
|
borderFocused: "#5c9cf5",
|
||||||
text: "#eeeeee",
|
text: "#eeeeee",
|
||||||
@@ -40,6 +42,7 @@ const LIGHT: Palette = {
|
|||||||
bg: "#ffffff",
|
bg: "#ffffff",
|
||||||
panel: "#f5f5f5",
|
panel: "#f5f5f5",
|
||||||
element: "#ebebeb",
|
element: "#ebebeb",
|
||||||
|
elementHover: "#e1e1e1",
|
||||||
border: "#d4d4d4",
|
border: "#d4d4d4",
|
||||||
borderFocused: "#3b7dd8",
|
borderFocused: "#3b7dd8",
|
||||||
text: "#1a1a1a",
|
text: "#1a1a1a",
|
||||||
@@ -81,15 +84,17 @@ let markdownStyle: SyntaxStyle | undefined;
|
|||||||
export function getMarkdownStyle(): SyntaxStyle {
|
export function getMarkdownStyle(): SyntaxStyle {
|
||||||
markdownStyle ??= SyntaxStyle.fromStyles({
|
markdownStyle ??= SyntaxStyle.fromStyles({
|
||||||
default: { fg: colors.text },
|
default: { fg: colors.text },
|
||||||
"markup.heading": { fg: colors.accent, bold: true },
|
"markup.heading": { fg: colors.text, bold: true },
|
||||||
"markup.strong": { bold: true },
|
"markup.strong": { bold: true },
|
||||||
"markup.italic": { italic: true },
|
"markup.italic": { italic: true },
|
||||||
"markup.strikethrough": { dim: true },
|
"markup.strikethrough": { dim: true },
|
||||||
"markup.link": { fg: colors.user, underline: true },
|
// The renderer appends " (url)" after a link's text even with conceal on, and offers
|
||||||
"markup.link.label": { fg: colors.user },
|
// no way to hide it; keep the text as the link and the rest as quiet as it can be.
|
||||||
"markup.link.url": { fg: colors.faint, underline: true },
|
"markup.link": { fg: colors.faint },
|
||||||
|
"markup.link.label": { fg: colors.accent, underline: true },
|
||||||
|
"markup.link.url": { fg: colors.faint },
|
||||||
"markup.quote": { fg: colors.muted, italic: true },
|
"markup.quote": { fg: colors.muted, italic: true },
|
||||||
"markup.raw": { fg: colors.warn },
|
"markup.raw": { fg: colors.plan },
|
||||||
"markup.raw.block": { fg: colors.text },
|
"markup.raw.block": { fg: colors.text },
|
||||||
});
|
});
|
||||||
return markdownStyle;
|
return markdownStyle;
|
||||||
|
|||||||
Reference in new issue
Block a user