Просмотр исходного кода

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

fix(ghost): adjust ghost text decoration colors for visibility
Christiaan Arnoldus 6 месяцев назад
Родитель
Сommit
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 = {
 const ADDITION_DECORATION_OPTIONS: vscode.DecorationRenderOptions = {
 	after: {
 	after: {
 		margin: "0 0 0 0.1em",
 		margin: "0 0 0 0.1em",
-		color: new vscode.ThemeColor("editor.foreground"),
+		color: new vscode.ThemeColor("editor.background"),
 		backgroundColor: new vscode.ThemeColor("editorGutter.addedBackground"),
 		backgroundColor: new vscode.ThemeColor("editorGutter.addedBackground"),
 	},
 	},
+	opacity: "0.8",
 	isWholeLine: false,
 	isWholeLine: false,
 	overviewRulerColor: new vscode.ThemeColor("editorGutter.addedBackground"),
 	overviewRulerColor: new vscode.ThemeColor("editorGutter.addedBackground"),
 	overviewRulerLane: vscode.OverviewRulerLane.Right,
 	overviewRulerLane: vscode.OverviewRulerLane.Right,
@@ -24,7 +25,7 @@ const ADDITION_ACTIVE_DECORATION_OPTIONS: vscode.DecorationRenderOptions = {
 
 
 const DELETION_DECORATION_OPTIONS: vscode.DecorationRenderOptions = {
 const DELETION_DECORATION_OPTIONS: vscode.DecorationRenderOptions = {
 	isWholeLine: false,
 	isWholeLine: false,
-	color: new vscode.ThemeColor("editor.foreground"),
+	color: new vscode.ThemeColor("editor.background"),
 	backgroundColor: new vscode.ThemeColor("editorGutter.deletedBackground"),
 	backgroundColor: new vscode.ThemeColor("editorGutter.deletedBackground"),
 	opacity: "0.8",
 	opacity: "0.8",
 	overviewRulerColor: new vscode.ThemeColor("editorGutter.deletedBackground"),
 	overviewRulerColor: new vscode.ThemeColor("editorGutter.deletedBackground"),