Skip to content

Commit 80ab451

Browse files
committed
feat(editor): let themes set the canvas gutter border
1 parent 698297f commit 80ab451

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/cm/canvasOptions.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ interface ThemeConfig {
3434
activeLine?: string;
3535
lineNumber?: string;
3636
lineNumberActive?: string;
37+
gutterBorder?: string;
3738
matchingBracket?: string;
3839
selectionMatch?: string;
3940
[color: string]: unknown;
@@ -182,6 +183,8 @@ export function getCanvasTheme(
182183
activeLineGutter: seeThrough ? "transparent" : background,
183184
gutterForeground: config.lineNumber,
184185
gutterActiveForeground: config.lineNumberActive,
186+
// A line between the gutter and the code, only when the theme asks.
187+
gutterBorder: config.gutterBorder,
185188
// Acode draws its own (draggable) scrollbars over the editor.
186189
scrollbar: "transparent",
187190
highlight,

0 commit comments

Comments
 (0)