mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-04-26 03:07:54 +08:00
feat: replace TreeView icon.
This commit is contained in:
@@ -71,8 +71,8 @@
|
|||||||
Background="Transparent">
|
Background="Transparent">
|
||||||
<PathIcon
|
<PathIcon
|
||||||
Name="PART_ExpandIconPath"
|
Name="PART_ExpandIconPath"
|
||||||
Width="{DynamicResource TreeViewItemIconSize}"
|
Theme="{StaticResource InnerPathIcon}"
|
||||||
Height="{DynamicResource TreeViewItemIconSize}"
|
Classes="Small"
|
||||||
Data="{DynamicResource ExpanderIconData}"
|
Data="{DynamicResource ExpanderIconData}"
|
||||||
Foreground="{DynamicResource TreeViewItemIconDefaultForeground}">
|
Foreground="{DynamicResource TreeViewItemIconDefaultForeground}">
|
||||||
<PathIcon.Transitions>
|
<PathIcon.Transitions>
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
<StaticResource x:Key="TreeViewItemDefaultCornerRadius" ResourceKey="SemiBorderRadiusSmall" />
|
<StaticResource x:Key="TreeViewItemDefaultCornerRadius" ResourceKey="SemiBorderRadiusSmall" />
|
||||||
<x:Double x:Key="TreeViewItemIndent">20</x:Double>
|
<x:Double x:Key="TreeViewItemIndent">20</x:Double>
|
||||||
<x:Double x:Key="TreeViewItemIconSize">8</x:Double>
|
|
||||||
<StaticResource x:Key="ExpanderIconData" ResourceKey="SemiIconTreeTriangleRight" />
|
<StaticResource x:Key="ExpanderIconData" ResourceKey="SemiIconTreeTriangleRight" />
|
||||||
<Thickness x:Key="TreeViewItemIconMargin">8 0</Thickness>
|
<Thickness x:Key="TreeViewItemIconMargin">8 0</Thickness>
|
||||||
<Thickness x:Key="TreeViewItemPadding">0 4 8 4</Thickness>
|
<Thickness x:Key="TreeViewItemPadding">0 4 8 4</Thickness>
|
||||||
|
|||||||
Reference in New Issue
Block a user