@@ -63,19 +63,19 @@ private void UpdateContent()
6363 }
6464
6565 if ( node . Tag != null )
66- CreateContent ( new Thickness ( 0 , 0 , 0 , 0 ) , "Icons.Tag" ) ;
66+ CreateContent ( new Thickness ( 0 , 0 , 0 , 0 ) , "Icons.Tag" , node . ToolTip is { IsAnnotated : false } ) ;
6767 else if ( node . IsExpanded )
68- CreateContent ( new Thickness ( 0 , 2 , 0 , 0 ) , "Icons.Folder.Open" ) ;
68+ CreateContent ( new Thickness ( 0 , 2 , 0 , 0 ) , "Icons.Folder.Open" , false ) ;
6969 else
70- CreateContent ( new Thickness ( 0 , 2 , 0 , 0 ) , "Icons.Folder" ) ;
70+ CreateContent ( new Thickness ( 0 , 2 , 0 , 0 ) , "Icons.Folder" , false ) ;
7171 }
7272
73- private void CreateContent ( Thickness margin , string iconKey )
73+ private void CreateContent ( Thickness margin , string iconKey , bool stroke )
7474 {
7575 if ( this . FindResource ( iconKey ) is not StreamGeometry geo )
7676 return ;
7777
78- Content = new Avalonia . Controls . Shapes . Path ( )
78+ var path = new Avalonia . Controls . Shapes . Path ( )
7979 {
8080 Width = 12 ,
8181 Height = 12 ,
@@ -84,6 +84,15 @@ private void CreateContent(Thickness margin, string iconKey)
8484 Margin = margin ,
8585 Data = geo ,
8686 } ;
87+
88+ if ( stroke )
89+ {
90+ path . Fill = Brushes . Transparent ;
91+ path . Stroke = this . FindResource ( "Brush.FG1" ) as IBrush ;
92+ path . StrokeThickness = 1 ;
93+ }
94+
95+ Content = path ;
8796 }
8897 }
8998
0 commit comments