将流程图按钮改为图标
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<UserControl
|
<UserControl
|
||||||
x:Class="XplorePlane.Views.PipelineEditorView"
|
x:Class="XplorePlane.Views.PipelineEditorView"
|
||||||
x:Name="RootControl"
|
x:Name="RootControl"
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
@@ -38,15 +38,18 @@
|
|||||||
|
|
||||||
<Style x:Key="ToolbarBtn" TargetType="Button">
|
<Style x:Key="ToolbarBtn" TargetType="Button">
|
||||||
<Setter Property="Height" Value="28" />
|
<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="Margin" Value="2,0" />
|
||||||
<Setter Property="Padding" Value="8,0" />
|
<Setter Property="Padding" Value="0" />
|
||||||
<Setter Property="Background" Value="Transparent" />
|
<Setter Property="Background" Value="Transparent" />
|
||||||
<Setter Property="BorderBrush" Value="#CDCBCB" />
|
<Setter Property="BorderBrush" Value="#CDCBCB" />
|
||||||
<Setter Property="BorderThickness" Value="1" />
|
<Setter Property="BorderThickness" Value="1" />
|
||||||
<Setter Property="FontFamily" Value="{StaticResource UiFont}" />
|
<Setter Property="FontFamily" Value="{StaticResource UiFont}" />
|
||||||
<Setter Property="FontSize" Value="11" />
|
<Setter Property="FontSize" Value="11" />
|
||||||
<Setter Property="Cursor" Value="Hand" />
|
<Setter Property="Cursor" Value="Hand" />
|
||||||
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
||||||
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||||||
</Style>
|
</Style>
|
||||||
</UserControl.Resources>
|
</UserControl.Resources>
|
||||||
|
|
||||||
@@ -80,25 +83,40 @@
|
|||||||
Orientation="Horizontal">
|
Orientation="Horizontal">
|
||||||
<Button
|
<Button
|
||||||
Command="{Binding NewPipelineCommand}"
|
Command="{Binding NewPipelineCommand}"
|
||||||
Content="新建配方"
|
|
||||||
Style="{StaticResource ToolbarBtn}"
|
Style="{StaticResource ToolbarBtn}"
|
||||||
ToolTip="新建配方" />
|
ToolTip="新建配方">
|
||||||
|
<TextBlock
|
||||||
|
FontFamily="Segoe MDL2 Assets"
|
||||||
|
FontSize="14"
|
||||||
|
Text="" />
|
||||||
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
Command="{Binding SavePipelineCommand}"
|
Command="{Binding SavePipelineCommand}"
|
||||||
Content="保存配方"
|
|
||||||
Style="{StaticResource ToolbarBtn}"
|
Style="{StaticResource ToolbarBtn}"
|
||||||
ToolTip="保存当前配方" />
|
ToolTip="保存当前配方">
|
||||||
|
<TextBlock
|
||||||
|
FontFamily="Segoe MDL2 Assets"
|
||||||
|
FontSize="14"
|
||||||
|
Text="" />
|
||||||
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
Width="64"
|
|
||||||
Command="{Binding SaveAsPipelineCommand}"
|
Command="{Binding SaveAsPipelineCommand}"
|
||||||
Content="另存为"
|
|
||||||
Style="{StaticResource ToolbarBtn}"
|
Style="{StaticResource ToolbarBtn}"
|
||||||
ToolTip="另存当前配方" />
|
ToolTip="另存当前配方">
|
||||||
|
<TextBlock
|
||||||
|
FontFamily="Segoe MDL2 Assets"
|
||||||
|
FontSize="14"
|
||||||
|
Text="" />
|
||||||
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
Command="{Binding LoadPipelineCommand}"
|
Command="{Binding LoadPipelineCommand}"
|
||||||
Content="加载配方"
|
|
||||||
Style="{StaticResource ToolbarBtn}"
|
Style="{StaticResource ToolbarBtn}"
|
||||||
ToolTip="加载配方" />
|
ToolTip="加载配方">
|
||||||
|
<TextBlock
|
||||||
|
FontFamily="Segoe MDL2 Assets"
|
||||||
|
FontSize="14"
|
||||||
|
Text="" />
|
||||||
|
</Button>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|
||||||
<TextBlock
|
<TextBlock
|
||||||
@@ -433,3 +451,4 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user