瀏覽代碼

Removed minus symbol for collapsing nodes

tznind 4 年之前
父節點
當前提交
a1904950fa
共有 1 個文件被更改,包括 1 次插入6 次删除
  1. 1 6
      Terminal.Gui/Views/TreeView.cs

+ 1 - 6
Terminal.Gui/Views/TreeView.cs

@@ -471,11 +471,6 @@ namespace Terminal.Gui {
 			}
 		}
 
-		/// <summary>
-		/// Symbol to use for expanded branch nodes to indicate to the user that they can be collapsed.  Defaults to '-'
-		/// </summary>
-		public Rune ExpandedSymbol {get;set;} = '-';
-
 		/// <summary>
 		/// Symbol to use for branch nodes that can be expanded to indicate this to the user.  Defaults to '+'
 		/// </summary>
@@ -797,7 +792,7 @@ namespace Terminal.Gui {
 		public Rune GetExpandableIcon(ConsoleDriver driver)
 		{
 			if(IsExpanded)
-				return tree.ExpandedSymbol;
+				return driver.HLine;
 
 			var leafSymbol = tree.ShowBranchLines ? driver.HLine : ' ';