Skip to content

Commit 85e4617

Browse files
committed
change underline offset
1 parent 3924495 commit 85e4617

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/annotator.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ function createDecorationUnderline(key: string): vscode.TextEditorDecorationType
2626
if (typeof (color) === 'string') {
2727
config.light = {
2828
color,
29-
textDecoration: `underline;text-decoration-color:${color};`
29+
textDecoration: `underline;text-decoration-color:${color};text-underline-offset: 4px;`
3030
};
3131
config.dark = {
3232
color,
33-
textDecoration: `underline;text-decoration-color:${color};`
33+
textDecoration: `underline;text-decoration-color:${color};text-underline-offset: 4px;`
3434
};
3535
} else {
3636
config.light = {
37-
textDecoration: `underline;`
37+
textDecoration: `underline;text-underline-offset: 4px;`
3838
};
3939
config.dark = {
40-
textDecoration: `underline;`
40+
textDecoration: `underline;text-underline-offset: 4px;`
4141
};
4242
}
4343
return vscode.window.createTextEditorDecorationType(config);

0 commit comments

Comments
 (0)