feat: replace TreeView icon.

This commit is contained in:
Zhang Dian
2025-03-17 14:08:22 +08:00
parent d7690e464b
commit 6cda56a830
2 changed files with 2 additions and 3 deletions

View File

@@ -71,8 +71,8 @@
Background="Transparent">
<PathIcon
Name="PART_ExpandIconPath"
Width="{DynamicResource TreeViewItemIconSize}"
Height="{DynamicResource TreeViewItemIconSize}"
Theme="{StaticResource InnerPathIcon}"
Classes="Small"
Data="{DynamicResource ExpanderIconData}"
Foreground="{DynamicResource TreeViewItemIconDefaultForeground}">
<PathIcon.Transitions>

View File

@@ -1,7 +1,6 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<StaticResource x:Key="TreeViewItemDefaultCornerRadius" ResourceKey="SemiBorderRadiusSmall" />
<x:Double x:Key="TreeViewItemIndent">20</x:Double>
<x:Double x:Key="TreeViewItemIconSize">8</x:Double>
<StaticResource x:Key="ExpanderIconData" ResourceKey="SemiIconTreeTriangleRight" />
<Thickness x:Key="TreeViewItemIconMargin">8 0</Thickness>
<Thickness x:Key="TreeViewItemPadding">0 4 8 4</Thickness>