feat: update resource name.
This commit is contained in:
parent
348a77243d
commit
507f030520
@ -52,7 +52,7 @@
|
|||||||
|
|
||||||
<converters:MarginMultiplierConverter
|
<converters:MarginMultiplierConverter
|
||||||
x:Key="TreeViewItemLeftMarginConverter"
|
x:Key="TreeViewItemLeftMarginConverter"
|
||||||
Indent="{StaticResource SizeTreeViewItemIndent}"
|
Indent="{StaticResource TreeViewItemIndent}"
|
||||||
Left="True" />
|
Left="True" />
|
||||||
<ControlTheme x:Key="ToggleButtonTreeViewItemIconButton" TargetType="ToggleButton">
|
<ControlTheme x:Key="ToggleButtonTreeViewItemIconButton" TargetType="ToggleButton">
|
||||||
<Setter Property="Margin" Value="0" />
|
<Setter Property="Margin" Value="0" />
|
||||||
@ -66,10 +66,10 @@
|
|||||||
Background="Transparent">
|
Background="Transparent">
|
||||||
<PathIcon
|
<PathIcon
|
||||||
Name="PART_ExpandIconPath"
|
Name="PART_ExpandIconPath"
|
||||||
Width="{DynamicResource SizeTreeViewItemIconSize}"
|
Width="{DynamicResource TreeViewItemIconSize}"
|
||||||
Height="{DynamicResource SizeTreeViewItemIconSize}"
|
Height="{DynamicResource TreeViewItemIconSize}"
|
||||||
Data="{DynamicResource ExpanderIconData}"
|
Data="{DynamicResource ExpanderIconData}"
|
||||||
Foreground="{DynamicResource ColorTreeViewItemIconDefaultForeground}">
|
Foreground="{DynamicResource TreeViewItemIconDefaultForeground}">
|
||||||
<PathIcon.Transitions>
|
<PathIcon.Transitions>
|
||||||
<Transitions>
|
<Transitions>
|
||||||
<TransformOperationsTransition Property="RenderTransform" Duration="0.1" />
|
<TransformOperationsTransition Property="RenderTransform" Duration="0.1" />
|
||||||
@ -84,14 +84,14 @@
|
|||||||
<Setter Property="PathIcon.RenderTransform" Value="rotate(90deg)" />
|
<Setter Property="PathIcon.RenderTransform" Value="rotate(90deg)" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^:pointerover /template/ PathIcon#PART_ExpandIconPath">
|
<Style Selector="^:pointerover /template/ PathIcon#PART_ExpandIconPath">
|
||||||
<Setter Property="PathIcon.Foreground" Value="{DynamicResource ColorTreeViewItemIconHoverForeground}" />
|
<Setter Property="PathIcon.Foreground" Value="{DynamicResource TreeViewItemIconHoverForeground}" />
|
||||||
</Style>
|
</Style>
|
||||||
</ControlTheme>
|
</ControlTheme>
|
||||||
|
|
||||||
<ControlTheme x:Key="{x:Type TreeViewItem}" TargetType="TreeViewItem">
|
<ControlTheme x:Key="{x:Type TreeViewItem}" TargetType="TreeViewItem">
|
||||||
<Setter Property="TreeViewItem.Padding" Value="0" />
|
<Setter Property="TreeViewItem.Padding" Value="0" />
|
||||||
<Setter Property="TreeViewItem.Background" Value="{DynamicResource ColorTreeViewItemDefaultBackground}" />
|
<Setter Property="TreeViewItem.Background" Value="{DynamicResource TreeViewItemDefaultBackground}" />
|
||||||
<Setter Property="TreeViewItem.Foreground" Value="{DynamicResource ColorTreeViewItemDefaultForeground}" />
|
<Setter Property="TreeViewItem.Foreground" Value="{DynamicResource TreeViewItemDefaultForeground}" />
|
||||||
<Setter Property="TreeViewItem.CornerRadius" Value="3" />
|
<Setter Property="TreeViewItem.CornerRadius" Value="3" />
|
||||||
<Setter Property="TreeViewItem.VerticalAlignment" Value="Center" />
|
<Setter Property="TreeViewItem.VerticalAlignment" Value="Center" />
|
||||||
<Setter Property="TreeViewItem.Template">
|
<Setter Property="TreeViewItem.Template">
|
||||||
@ -100,7 +100,7 @@
|
|||||||
<Border
|
<Border
|
||||||
Name="PART_LayoutRoot"
|
Name="PART_LayoutRoot"
|
||||||
MinHeight="{TemplateBinding MinHeight}"
|
MinHeight="{TemplateBinding MinHeight}"
|
||||||
Padding="{DynamicResource ThicknessTreeViewItemPadding}"
|
Padding="{DynamicResource TreeViewItemPadding}"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
@ -114,7 +114,7 @@
|
|||||||
ColumnDefinitions="Auto, *">
|
ColumnDefinitions="Auto, *">
|
||||||
<Panel
|
<Panel
|
||||||
Name="PART_ExpandCollapseChevronContainer" Grid.Column="0"
|
Name="PART_ExpandCollapseChevronContainer" Grid.Column="0"
|
||||||
Margin="{StaticResource ThicknessTreeViewItemIconMargin}">
|
Margin="{StaticResource TreeViewItemIconMargin}">
|
||||||
<ToggleButton
|
<ToggleButton
|
||||||
Name="PART_ExpandCollapseChevron" Focusable="False"
|
Name="PART_ExpandCollapseChevron" Focusable="False"
|
||||||
IsChecked="{TemplateBinding IsExpanded,
|
IsChecked="{TemplateBinding IsExpanded,
|
||||||
@ -142,30 +142,30 @@
|
|||||||
|
|
||||||
<!-- PointerOver state -->
|
<!-- PointerOver state -->
|
||||||
<Style Selector="^ /template/ Border#PART_LayoutRoot:pointerover">
|
<Style Selector="^ /template/ Border#PART_LayoutRoot:pointerover">
|
||||||
<Setter Property="Background" Value="{DynamicResource ColorTreeViewItemPointerOverBackground}" />
|
<Setter Property="Background" Value="{DynamicResource TreeViewItemPointerOverBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- Pressed state -->
|
<!-- Pressed state -->
|
||||||
<Style Selector="^:pressed /template/ Border#PART_LayoutRoot:pointerover">
|
<Style Selector="^:pressed /template/ Border#PART_LayoutRoot:pointerover">
|
||||||
<Setter Property="Background" Value="{DynamicResource ColorTreeViewItemPressedBackground}" />
|
<Setter Property="Background" Value="{DynamicResource TreeViewItemPressedBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- Disabled state -->
|
<!-- Disabled state -->
|
||||||
<Style Selector="^:disabled /template/ Border#PART_LayoutRoot">
|
<Style Selector="^:disabled /template/ Border#PART_LayoutRoot">
|
||||||
<Setter Property="Background" Value="{DynamicResource ColorTreeViewItemDisabledBackground}" />
|
<Setter Property="Background" Value="{DynamicResource TreeViewItemDisabledBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^:disabled /template/ ContentPresenter#PART_HeaderPresenter">
|
<Style Selector="^:disabled /template/ ContentPresenter#PART_HeaderPresenter">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource ColorTreeViewItemDisabledForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource TreeViewItemDisabledForeground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- Selected state -->
|
<!-- Selected state -->
|
||||||
<Style Selector="^:selected /template/ Border#PART_LayoutRoot">
|
<Style Selector="^:selected /template/ Border#PART_LayoutRoot">
|
||||||
<Setter Property="Background" Value="{DynamicResource ColorTreeViewItemSelectedBackground}" />
|
<Setter Property="Background" Value="{DynamicResource TreeViewItemSelectedBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- Disabled Selected state -->
|
<!-- Disabled Selected state -->
|
||||||
<Style Selector="^:disabled:selected /template/ Border#PART_LayoutRoot">
|
<Style Selector="^:disabled:selected /template/ Border#PART_LayoutRoot">
|
||||||
<Setter Property="Background" Value="{DynamicResource ColorTreeViewItemSelectedDisabledBackground}" />
|
<Setter Property="Background" Value="{DynamicResource TreeViewItemSelectedDisabledBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^:empty /template/ ToggleButton#PART_ExpandCollapseChevron">
|
<Style Selector="^:empty /template/ ToggleButton#PART_ExpandCollapseChevron">
|
||||||
|
@ -1,24 +1,24 @@
|
|||||||
<ResourceDictionary
|
<ResourceDictionary
|
||||||
xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:sys="clr-namespace:System;assembly=System.Runtime">
|
xmlns:sys="clr-namespace:System;assembly=System.Runtime">
|
||||||
<sys:Double x:Key="SizeTreeViewItemIndent">20</sys:Double>
|
<sys:Double x:Key="TreeViewItemIndent">20</sys:Double>
|
||||||
<sys:Double x:Key="SizeTreeViewItemIconSize">8</sys:Double>
|
<sys:Double x:Key="TreeViewItemIconSize">8</sys:Double>
|
||||||
<Thickness x:Key="TreeViewItemExpandCollapseChevronMargin">12, 0, 12, 0</Thickness>
|
<Thickness x:Key="TreeViewItemExpandCollapseChevronMargin">12, 0, 12, 0</Thickness>
|
||||||
|
|
||||||
<StreamGeometry x:Key="ExpanderIconData">M9.65618 3.44015L18.6322 11.2454C19.0906 11.644 19.0906 12.356 18.6322 12.7546L9.65618 20.5598C9.00895 21.1226 8 20.6629 8 19.8052V4.19475C8 3.33705 9.00895 2.87734 9.65618 3.44015Z</StreamGeometry>
|
<StreamGeometry x:Key="ExpanderIconData">M9.65618 3.44015L18.6322 11.2454C19.0906 11.644 19.0906 12.356 18.6322 12.7546L9.65618 20.5598C9.00895 21.1226 8 20.6629 8 19.8052V4.19475C8 3.33705 9.00895 2.87734 9.65618 3.44015Z</StreamGeometry>
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ColorTreeViewItemDefaultForeground" Color="#1C1F23" />
|
<SolidColorBrush x:Key="TreeViewItemDefaultForeground" Color="#1C1F23" />
|
||||||
<SolidColorBrush x:Key="ColorTreeViewItemIconDefaultForeground" Opacity="0.62" Color="#1C1F23" />
|
<SolidColorBrush x:Key="TreeViewItemIconDefaultForeground" Opacity="0.62" Color="#1C1F23" />
|
||||||
<SolidColorBrush x:Key="ColorTreeViewItemIconHoverForeground" Color="#1C1F23" />
|
<SolidColorBrush x:Key="TreeViewItemIconHoverForeground" Color="#1C1F23" />
|
||||||
<SolidColorBrush x:Key="ColorTreeViewItemDisabledForeground" Opacity="0.35" Color="#1C1F23" />
|
<SolidColorBrush x:Key="TreeViewItemDisabledForeground" Opacity="0.35" Color="#1C1F23" />
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ColorTreeViewItemDefaultBackground" Color="Transparent" />
|
<SolidColorBrush x:Key="TreeViewItemDefaultBackground" Color="Transparent" />
|
||||||
<SolidColorBrush x:Key="ColorTreeViewItemPointerOverBackground" Opacity="0.05" Color="#2E3238" />
|
<SolidColorBrush x:Key="TreeViewItemPointerOverBackground" Opacity="0.05" Color="#2E3238" />
|
||||||
<SolidColorBrush x:Key="ColorTreeViewItemPressedBackground" Opacity="0.09" Color="#2E3238" />
|
<SolidColorBrush x:Key="TreeViewItemPressedBackground" Opacity="0.09" Color="#2E3238" />
|
||||||
<SolidColorBrush x:Key="ColorTreeViewItemSelectedBackground" Color="#EAF5FF" />
|
<SolidColorBrush x:Key="TreeViewItemSelectedBackground" Color="#EAF5FF" />
|
||||||
<SolidColorBrush x:Key="ColorTreeViewItemDisabledBackground" Color="Transparent" />
|
<SolidColorBrush x:Key="TreeViewItemDisabledBackground" Color="Transparent" />
|
||||||
<SolidColorBrush x:Key="ColorTreeViewItemSelectedDisabledBackground" Opacity="0.04" Color="#2E3238" />
|
<SolidColorBrush x:Key="TreeViewItemSelectedDisabledBackground" Opacity="0.04" Color="#2E3238" />
|
||||||
|
|
||||||
<Thickness x:Key="ThicknessTreeViewItemIconMargin">0 0 8 0</Thickness>
|
<Thickness x:Key="TreeViewItemIconMargin">0 0 8 0</Thickness>
|
||||||
<Thickness x:Key="ThicknessTreeViewItemPadding">8 4 0 4</Thickness>
|
<Thickness x:Key="TreeViewItemPadding">8 4 0 4</Thickness>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user