浏览代码

Set render color to match focused background

tznind 2 年之前
父节点
当前提交
0733274ecc
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Terminal.Gui/Core/Autocomplete/AppendAutocomplete.cs

+ 2 - 2
Terminal.Gui/Core/Autocomplete/AppendAutocomplete.cs

@@ -20,7 +20,7 @@ namespace Terminal.Gui {
 		public int MaxHeight { get; set; }
 		public bool Visible { get; set; }
 		public ReadOnlyCollection<string> Suggestions { get; set; }
-		public List<string> AllSuggestions { get; set; }
+		public List<string> AllSuggestions { get; set; } 
 		public int SelectedIdx { get; set; }
 		public ColorScheme ColorScheme { get; set; }
 		public Key SelectionKey { get; set; } = Key.Tab;
@@ -67,7 +67,7 @@ namespace Terminal.Gui {
 			}
 
 			// draw it like its selected even though its not
-			Application.Driver.SetAttribute (new Attribute (Color.DarkGray, Color.Black));
+			Application.Driver.SetAttribute (new Attribute (Color.DarkGray, textField.ColorScheme.Focus.Background));
 			textField.Move (textField.Text.Length, 0);
 			Application.Driver.AddStr (this.validFragments [this.currentFragment.Value]);
 		}