Skip to content

Commit a3fd804

Browse files
committed
fix: fix number decoration
1 parent 40ec8fc commit a3fd804

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/decoration-manager.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,15 @@ export default class DecorationManager {
206206
const colorValue = getColorTokenValue(this.fullToken[key]);
207207
valueDecorations.push(decoration);
208208

209+
const themeFocusBorderColor = new vscode.ThemeColor("focusBorder");
209210
const decorationType = vscode.window.createTextEditorDecorationType({
210211
after: {
211-
contentText: colorValue ? `**` : `${String(this.fullToken[key])}`,
212+
contentText: colorValue ? "--" : `${String(this.fullToken[key])}`,
213+
color: colorValue ? "transparent" : "#b37feb",
212214
backgroundColor: colorValue || "",
215+
border: "2px solid",
216+
borderColor: themeFocusBorderColor,
213217
margin: "0 0 0 5px;",
214-
color: colorValue || "#b37feb",
215218
fontWeight: "bolder",
216219
},
217220
});

0 commit comments

Comments
 (0)