调整CNC编辑页面按钮样式
This commit is contained in:
@@ -97,15 +97,17 @@
|
|||||||
<Setter Property="FontSize" Value="11" />
|
<Setter Property="FontSize" Value="11" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style x:Key="TreeToolbarButtonCompact" TargetType="Button" BasedOn="{StaticResource TreeToolbarButton}">
|
<Style x:Key="TreeToolbarButtonCompact" TargetType="Button" BasedOn="{StaticResource TreeToolbarButton}">
|
||||||
<Setter Property="MinWidth" Value="56" />
|
<Setter Property="Width" Value="28" />
|
||||||
|
<Setter Property="Height" Value="28" />
|
||||||
|
<Setter Property="MinWidth" Value="28" />
|
||||||
<Setter Property="Margin" Value="0,0,4,4" />
|
<Setter Property="Margin" Value="0,0,4,4" />
|
||||||
<Setter Property="Padding" Value="6,0" />
|
<Setter Property="Padding" Value="0" />
|
||||||
<Setter Property="FontSize" Value="10.5" />
|
<Setter Property="FontSize" Value="10.5" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style x:Key="TreeToolbarIcon" TargetType="Image">
|
<Style x:Key="TreeToolbarIcon" TargetType="Image">
|
||||||
<Setter Property="Width" Value="12" />
|
<Setter Property="Width" Value="14" />
|
||||||
<Setter Property="Height" Value="12" />
|
<Setter Property="Height" Value="14" />
|
||||||
<Setter Property="Margin" Value="0,0,4,0" />
|
<Setter Property="Margin" Value="0" />
|
||||||
<Setter Property="Stretch" Value="Uniform" />
|
<Setter Property="Stretch" Value="Uniform" />
|
||||||
<Setter Property="VerticalAlignment" Value="Center" />
|
<Setter Property="VerticalAlignment" Value="Center" />
|
||||||
</Style>
|
</Style>
|
||||||
@@ -139,25 +141,8 @@
|
|||||||
BorderBrush="{StaticResource SeparatorBrush}"
|
BorderBrush="{StaticResource SeparatorBrush}"
|
||||||
BorderThickness="0,0,0,1">
|
BorderThickness="0,0,0,1">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<WrapPanel>
|
<WrapPanel/>
|
||||||
<Button
|
<WrapPanel Margin="0,4,0,0" Visibility="Collapsed">
|
||||||
Command="{Binding NewProgramCommand}"
|
|
||||||
Content="新建"
|
|
||||||
Style="{StaticResource TreeToolbarButton}" />
|
|
||||||
<Button
|
|
||||||
Command="{Binding SaveProgramCommand}"
|
|
||||||
Content="保存"
|
|
||||||
Style="{StaticResource TreeToolbarButton}" />
|
|
||||||
<Button
|
|
||||||
Command="{Binding LoadProgramCommand}"
|
|
||||||
Content="加载"
|
|
||||||
Style="{StaticResource TreeToolbarButton}" />
|
|
||||||
<Button
|
|
||||||
Command="{Binding ExportCsvCommand}"
|
|
||||||
Content="导出"
|
|
||||||
Style="{StaticResource TreeToolbarButton}" />
|
|
||||||
</WrapPanel>
|
|
||||||
<WrapPanel Margin="0,4,0,0" Visibility="Collapsed">
|
|
||||||
<Button
|
<Button
|
||||||
Command="{Binding InsertReferencePointCommand}"
|
Command="{Binding InsertReferencePointCommand}"
|
||||||
Content="参考点"
|
Content="参考点"
|
||||||
@@ -188,9 +173,15 @@
|
|||||||
Style="{StaticResource TreeToolbarButtonCompact}" />
|
Style="{StaticResource TreeToolbarButtonCompact}" />
|
||||||
</WrapPanel>
|
</WrapPanel>
|
||||||
<WrapPanel Margin="0,4,0,0">
|
<WrapPanel Margin="0,4,0,0">
|
||||||
|
<WrapPanel.Resources>
|
||||||
|
<Style TargetType="TextBlock">
|
||||||
|
<Setter Property="Visibility" Value="Collapsed" />
|
||||||
|
</Style>
|
||||||
|
</WrapPanel.Resources>
|
||||||
<Button
|
<Button
|
||||||
Command="{Binding InsertReferencePointCommand}"
|
Command="{Binding InsertReferencePointCommand}"
|
||||||
Style="{StaticResource TreeToolbarButtonCompact}">
|
Style="{StaticResource TreeToolbarButtonCompact}"
|
||||||
|
ToolTip="参考点">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<Image Source="/Assets/Icons/reference.png" Style="{StaticResource TreeToolbarIcon}" />
|
<Image Source="/Assets/Icons/reference.png" Style="{StaticResource TreeToolbarIcon}" />
|
||||||
<TextBlock Text="参考点" />
|
<TextBlock Text="参考点" />
|
||||||
@@ -198,7 +189,8 @@
|
|||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
Command="{Binding InsertSavePositionCommand}"
|
Command="{Binding InsertSavePositionCommand}"
|
||||||
Style="{StaticResource TreeToolbarButtonCompact}">
|
Style="{StaticResource TreeToolbarButtonCompact}"
|
||||||
|
ToolTip="添加位置">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<Image Source="/Assets/Icons/add-pos.png" Style="{StaticResource TreeToolbarIcon}" />
|
<Image Source="/Assets/Icons/add-pos.png" Style="{StaticResource TreeToolbarIcon}" />
|
||||||
<TextBlock Text="添加位置" />
|
<TextBlock Text="添加位置" />
|
||||||
@@ -206,7 +198,8 @@
|
|||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
Command="{Binding InsertInspectionModuleCommand}"
|
Command="{Binding InsertInspectionModuleCommand}"
|
||||||
Style="{StaticResource TreeToolbarButtonCompact}">
|
Style="{StaticResource TreeToolbarButtonCompact}"
|
||||||
|
ToolTip="检测模块">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<Image Source="/Assets/Icons/Module.png" Style="{StaticResource TreeToolbarIcon}" />
|
<Image Source="/Assets/Icons/Module.png" Style="{StaticResource TreeToolbarIcon}" />
|
||||||
<TextBlock Text="检测模块" />
|
<TextBlock Text="检测模块" />
|
||||||
@@ -214,7 +207,8 @@
|
|||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
Command="{Binding InsertInspectionMarkerCommand}"
|
Command="{Binding InsertInspectionMarkerCommand}"
|
||||||
Style="{StaticResource TreeToolbarButtonCompact}">
|
Style="{StaticResource TreeToolbarButtonCompact}"
|
||||||
|
ToolTip="检测标记">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<Image Source="/Assets/Icons/mark.png" Style="{StaticResource TreeToolbarIcon}" />
|
<Image Source="/Assets/Icons/mark.png" Style="{StaticResource TreeToolbarIcon}" />
|
||||||
<TextBlock Text="检测标记" />
|
<TextBlock Text="检测标记" />
|
||||||
@@ -222,7 +216,8 @@
|
|||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
Command="{Binding InsertPauseDialogCommand}"
|
Command="{Binding InsertPauseDialogCommand}"
|
||||||
Style="{StaticResource TreeToolbarButtonCompact}">
|
Style="{StaticResource TreeToolbarButtonCompact}"
|
||||||
|
ToolTip="消息弹窗">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<Image Source="/Assets/Icons/message.png" Style="{StaticResource TreeToolbarIcon}" />
|
<Image Source="/Assets/Icons/message.png" Style="{StaticResource TreeToolbarIcon}" />
|
||||||
<TextBlock Text="消息弹窗" />
|
<TextBlock Text="消息弹窗" />
|
||||||
@@ -230,7 +225,8 @@
|
|||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
Command="{Binding InsertWaitDelayCommand}"
|
Command="{Binding InsertWaitDelayCommand}"
|
||||||
Style="{StaticResource TreeToolbarButtonCompact}">
|
Style="{StaticResource TreeToolbarButtonCompact}"
|
||||||
|
ToolTip="插入等待">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<Image Source="/Assets/Icons/wait.png" Style="{StaticResource TreeToolbarIcon}" />
|
<Image Source="/Assets/Icons/wait.png" Style="{StaticResource TreeToolbarIcon}" />
|
||||||
<TextBlock Text="插入等待" />
|
<TextBlock Text="插入等待" />
|
||||||
@@ -238,7 +234,8 @@
|
|||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
Command="{Binding InsertCompleteProgramCommand}"
|
Command="{Binding InsertCompleteProgramCommand}"
|
||||||
Style="{StaticResource TreeToolbarButtonCompact}">
|
Style="{StaticResource TreeToolbarButtonCompact}"
|
||||||
|
ToolTip="完成">
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<Image Source="/Assets/Icons/finish.png" Style="{StaticResource TreeToolbarIcon}" />
|
<Image Source="/Assets/Icons/finish.png" Style="{StaticResource TreeToolbarIcon}" />
|
||||||
<TextBlock Text="完成" />
|
<TextBlock Text="完成" />
|
||||||
|
|||||||
Reference in New Issue
Block a user