对齐实时图与过程图宽度并扩展日志显示高度

This commit is contained in:
tfarcraw 2026-11-13 09:10:24 +08:00
parent c219a89181
commit cf7090cdd8
2 changed files with 7 additions and 5 deletions

View File

@ -22,7 +22,7 @@
<ColumnDefinition Width="*" />
<ColumnDefinition Width="390" />
</Grid.ColumnDefinitions>
<Border Grid.Column="0" Classes="panel">
<Border Grid.Column="0" Classes="panel" x:Name="RealtimeImagePanel">
<Viewbox Stretch="Uniform" Margin="4">
<Grid Width="{Binding FrameWidth}" Height="{Binding FrameHeight}">
<Image Source="{Binding Frame}" Stretch="Fill" />
@ -51,13 +51,13 @@
</Grid>
</Viewbox>
</Border>
<Grid Grid.Column="1" Margin="10,0,0,0">
<Grid Grid.Column="1" Grid.RowSpan="2" Margin="10,0,0,0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="2*" />
<RowDefinition Height="*" />
<RowDefinition Height="2*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Border Grid.Row="0" Classes="panel">
@ -135,7 +135,7 @@
</StackPanel>
</ScrollViewer>
</Border>
<Border Grid.Row="4" Margin="0,10,0,0" Padding="6" Classes="panel">
<Border Grid.Row="4" Margin="0,10,0,0" Padding="6" Classes="panel" x:Name="LogPanel">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
@ -171,7 +171,7 @@
<TextBlock Text="{Binding ConnectionText}" Margin="6,0,0,0" Foreground="{StaticResource FgDim}" />
</StackPanel>
</Grid>
<Border Grid.Row="1" Grid.ColumnSpan="2" Margin="0,10,0,0" Classes="panel" x:Name="ProcessImagesPanel">
<Border Grid.Row="1" Grid.Column="0" Margin="0,10,0,0" Classes="panel" x:Name="ProcessImagesPanel">
<Grid RowDefinitions="Auto,Auto">
<TextBlock Text="过程图 · 步骤完成时定格" Classes="Title" />
<ScrollViewer Grid.Row="1" Margin="0,8,0,0" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Disabled">

View File

@ -90,6 +90,8 @@ internal static class Smoke
Check(settings.GetVisualDescendants().OfType<ComboBox>().Count()==2&&settings.GetVisualDescendants().OfType<Slider>().Count()==2,"Camera, recipe, threshold and stride editors are on settings page");
await CheckRecipeSelection(window,navigation,sop);
if(_recipeSelectionOnly){_exit=0;return;}
// 后续断言针对 demo 的四步三域,不能依赖新增模板后的文件排序。
sop.SelectedRecipe="demo.yaml";
sop.ApplyRecipeCommand.Execute();
Check(sop.ActiveRecipe==sop.SelectedRecipe,"Applied recipe is shown as current");
var applied=sop.ActiveRecipe;var selected=sop.SelectedRecipe;