将流程图按钮改为图标

This commit is contained in:
zhengxuan.zhang
2026-05-06 13:32:21 +08:00
parent a483144d29
commit db8a37410f
@@ -1,4 +1,4 @@
<UserControl
<UserControl
x:Class="XplorePlane.Views.PipelineEditorView"
x:Name="RootControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
@@ -38,15 +38,18 @@
<Style x:Key="ToolbarBtn" TargetType="Button">
<Setter Property="Height" Value="28" />
<Setter Property="MinWidth" Value="52" />
<Setter Property="Width" Value="32" />
<Setter Property="MinWidth" Value="32" />
<Setter Property="Margin" Value="2,0" />
<Setter Property="Padding" Value="8,0" />
<Setter Property="Padding" Value="0" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="#CDCBCB" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="FontFamily" Value="{StaticResource UiFont}" />
<Setter Property="FontSize" Value="11" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
</Style>
</UserControl.Resources>
@@ -80,25 +83,40 @@
Orientation="Horizontal">
<Button
Command="{Binding NewPipelineCommand}"
Content="新建配方"
Style="{StaticResource ToolbarBtn}"
ToolTip="新建配方" />
ToolTip="新建配方">
<TextBlock
FontFamily="Segoe MDL2 Assets"
FontSize="14"
Text="&#xE710;" />
</Button>
<Button
Command="{Binding SavePipelineCommand}"
Content="保存配方"
Style="{StaticResource ToolbarBtn}"
ToolTip="保存当前配方" />
ToolTip="保存当前配方">
<TextBlock
FontFamily="Segoe MDL2 Assets"
FontSize="14"
Text="&#xE74E;" />
</Button>
<Button
Width="64"
Command="{Binding SaveAsPipelineCommand}"
Content="另存为"
Style="{StaticResource ToolbarBtn}"
ToolTip="另存当前配方" />
ToolTip="另存当前配方">
<TextBlock
FontFamily="Segoe MDL2 Assets"
FontSize="14"
Text="&#xE792;" />
</Button>
<Button
Command="{Binding LoadPipelineCommand}"
Content="加载配方"
Style="{StaticResource ToolbarBtn}"
ToolTip="加载配方" />
ToolTip="加载配方">
<TextBlock
FontFamily="Segoe MDL2 Assets"
FontSize="14"
Text="&#xE8E5;" />
</Button>
</StackPanel>
<TextBlock
@@ -433,3 +451,4 @@
</Grid>
</Border>
</UserControl>