File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 76
76
<Setter Property =" ShowTitle" Value =" False" />
77
77
<Setter Property =" AllowFilter" Value =" False" />
78
78
<Setter Property =" AllowQuickFilter" Value =" False" />
79
- <Setter Property =" Margin" Value =" 2 " />
79
+ <Setter Property =" Margin" Value =" 4 " />
80
80
</Style >
81
81
82
82
<StyleInclude Source =" avares://Avalonia.Controls.TreeDataGrid/Themes/Fluent.axaml" />
Original file line number Diff line number Diff line change 87
87
<Border Grid.Row=" 5" BorderThickness =" 1" Margin =" 2" >
88
88
<TreeDataGrid Source =" {Binding TreeDataGridSource}" >
89
89
<TreeDataGrid .Styles>
90
- <Style Selector =" TreeDataGrid TreeDataGridRow:nth-child(2n)" >
91
- <Setter Property =" Background" Value =" #20808080" />
90
+ <Style Selector =" TreeDataGrid TreeDataGridRow" >
91
+ <Setter Property =" Height" Value =" 32" />
92
+ </Style >
93
+ <Style Selector =" TreeDataGrid TreeDataGridRow:nth-child(even)" >
94
+ <Setter Property =" Background" Value =" #18808080" />
95
+ <!-- ARGB in hex -->
92
96
</Style >
93
97
</TreeDataGrid .Styles>
94
98
<TreeDataGrid .Resources>
95
99
96
100
<!-- Template for Name column cells -->
97
101
<!-- Copied from App.axaml Window.DataTemplates as you cannot give a key there -->
98
102
<DataTemplate x : Key =" Object" DataType =" mo:FileSystemItemBase" >
99
- <StackPanel Orientation =" Horizontal" >
103
+ <StackPanel Orientation =" Horizontal" >
100
104
<materialIcons : MaterialIcon Kind =" {Binding DisplayName, Converter={StaticResource EnumToMaterialIconConverter}}" Width =" 24" Height =" 24" Margin =" 2" />
101
105
<TextBlock VerticalAlignment =" Center" Text =" {Binding NameComputed}" />
102
106
</StackPanel >
103
107
</DataTemplate >
104
108
105
109
<!-- Edit template for Name column cells -->
106
110
<DataTemplate x : Key =" Edit" DataType =" mo:FileSystemItemBase" >
107
- <StackPanel Orientation =" Horizontal" >
111
+ <StackPanel Orientation =" Horizontal" >
108
112
<materialIcons : MaterialIcon Kind =" {Binding DisplayName, Converter={StaticResource EnumToMaterialIconConverter}}" Width =" 24" Height =" 24" Margin =" 2" />
109
113
<TextBlock VerticalAlignment =" Center" Text =" {Binding NameComputed}" />
110
114
</StackPanel >
You can’t perform that action at this time.
0 commit comments