|
1 | 1 | <Styles xmlns="https://github.com/avaloniaui"
|
2 | 2 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
3 | 3 |
|
| 4 | + <StyleInclude Source="/Themes/Generic.axaml" /> |
| 5 | + |
4 | 6 | <Styles.Resources>
|
5 | 7 | <ResourceDictionary>
|
6 |
| - <ResourceDictionary.MergedDictionaries> |
7 |
| - <MergeResourceInclude Source="/Themes/FluentControls.axaml" /> |
8 |
| - </ResourceDictionary.MergedDictionaries> |
| 8 | + <ResourceDictionary.ThemeDictionaries> |
| 9 | + <ResourceDictionary x:Key="Default"> |
| 10 | + <SolidColorBrush x:Key="TreeDataGridGridLinesBrush" Color="{StaticResource SystemListLowColor}" /> |
| 11 | + <SolidColorBrush x:Key="TreeDataGridHeaderBackgroundPointerOverBrush" Color="{StaticResource SystemBaseHighColor}" Opacity="0.1" /> |
| 12 | + <SolidColorBrush x:Key="TreeDataGridHeaderBackgroundPressedBrush" Color="{StaticResource SystemBaseMediumLowColor}" /> |
| 13 | + <SolidColorBrush x:Key="TreeDataGridHeaderBorderBrushPointerOverBrush" Color="Transparent" /> |
| 14 | + <SolidColorBrush x:Key="TreeDataGridHeaderBorderBrushPressedBrush" Color="Transparent" /> |
| 15 | + <SolidColorBrush x:Key="TreeDataGridHeaderForegroundPointerOverBrush" Color="{StaticResource SystemBaseHighColor}" /> |
| 16 | + <SolidColorBrush x:Key="TreeDataGridHeaderForegroundPressedBrush" Color="{StaticResource SystemBaseHighColor}" /> |
| 17 | + <SolidColorBrush x:Key="TreeDataGridSelectedCellBackgroundBrush" Color="{StaticResource SystemAccentColor}" Opacity="0.4" /> |
| 18 | + </ResourceDictionary> |
| 19 | + <ResourceDictionary x:Key="Dark"> |
| 20 | + <SolidColorBrush x:Key="TreeDataGridGridLinesBrush" Color="{StaticResource SystemListLowColor}" /> |
| 21 | + <SolidColorBrush x:Key="TreeDataGridHeaderBackgroundPointerOverBrush" Color="{StaticResource SystemBaseHighColor}" Opacity="0.1" /> |
| 22 | + <SolidColorBrush x:Key="TreeDataGridHeaderBackgroundPressedBrush" Color="{StaticResource SystemBaseMediumLowColor}" /> |
| 23 | + <SolidColorBrush x:Key="TreeDataGridHeaderBorderBrushPointerOverBrush" Color="Transparent" /> |
| 24 | + <SolidColorBrush x:Key="TreeDataGridHeaderBorderBrushPressedBrush" Color="Transparent" /> |
| 25 | + <SolidColorBrush x:Key="TreeDataGridHeaderForegroundPointerOverBrush" Color="{StaticResource SystemBaseHighColor}" /> |
| 26 | + <SolidColorBrush x:Key="TreeDataGridHeaderForegroundPressedBrush" Color="{StaticResource SystemBaseHighColor}" /> |
| 27 | + <SolidColorBrush x:Key="TreeDataGridSelectedCellBackgroundBrush" Color="{StaticResource SystemAccentColor}" Opacity="0.4" /> |
| 28 | + </ResourceDictionary> |
| 29 | + </ResourceDictionary.ThemeDictionaries> |
9 | 30 | </ResourceDictionary>
|
10 | 31 | </Styles.Resources>
|
11 | 32 |
|
12 |
| - <Style Selector=":is(TreeDataGridCell)"> |
13 |
| - <Setter Property="Background" Value="Transparent"/> |
14 |
| - <Setter Property="MinHeight" Value="25"/> |
15 |
| - </Style> |
16 |
| - |
17 |
| - <Style Selector=":is(TreeDataGridCell):selected"> |
18 |
| - <Setter Property="Background" Value="{DynamicResource TreeDataGridSelectedCellBackgroundBrush}"/> |
19 |
| - </Style> |
20 |
| - |
21 | 33 | </Styles>
|
0 commit comments