Преглед изворни кода

Merge pull request #1625 from Kilo-Org/fix-inline-assist-colors

fix(ghost): adjust ghost text decoration colors for visibility
Christiaan Arnoldus пре 6 месеци
родитељ
комит
5db0c4e2de
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      src/services/ghost/GhostDecorations.ts

+ 3 - 2
src/services/ghost/GhostDecorations.ts

@@ -4,9 +4,10 @@ import { GhostSuggestionsState } from "./GhostSuggestions"
 const ADDITION_DECORATION_OPTIONS: vscode.DecorationRenderOptions = {
 	after: {
 		margin: "0 0 0 0.1em",
-		color: new vscode.ThemeColor("editor.foreground"),
+		color: new vscode.ThemeColor("editor.background"),
 		backgroundColor: new vscode.ThemeColor("editorGutter.addedBackground"),
 	},
+	opacity: "0.8",
 	isWholeLine: false,
 	overviewRulerColor: new vscode.ThemeColor("editorGutter.addedBackground"),
 	overviewRulerLane: vscode.OverviewRulerLane.Right,
@@ -24,7 +25,7 @@ const ADDITION_ACTIVE_DECORATION_OPTIONS: vscode.DecorationRenderOptions = {
 
 const DELETION_DECORATION_OPTIONS: vscode.DecorationRenderOptions = {
 	isWholeLine: false,
-	color: new vscode.ThemeColor("editor.foreground"),
+	color: new vscode.ThemeColor("editor.background"),
 	backgroundColor: new vscode.ThemeColor("editorGutter.deletedBackground"),
 	opacity: "0.8",
 	overviewRulerColor: new vscode.ThemeColor("editorGutter.deletedBackground"),