feat(P5): Render menu with grouped presets, Save frame and a fixed-width header
The editor header's button now reads "Render" whatever the preset, so its width stays the same in every language, and the tooltip carries the preset, size, codec, fps and estimates (owner review 1, R3, decisions 1, 2 and 12). Its menu is rebuilt every time it opens. Top to bottom it lists: - Recommended, the batch and up to three recent presets (taken from the render history); - Other presets, grouped by Video, Social, Intermediate, Sequence and Web, each entry with a details line; - Render batch, Add to queue, Save frame (PNG, JPEG or TIFF 16-bit) and Videos. SplitButton learns hierarchical, two-line menu entries. Still jobs come from EditorSession.StillRequests and carry the frame index and the photo hash. Save frame stays disabled, with the reason in its tooltip, in these cases: - the sequence is read-only; - there is no renderable frame; - the server is older than settings format 3; - the project is a workspace one, which has no still route yet (the IProjectStills hook is left for it). A playback render is now gated on the format of the job's own export. The project menu gains "Save project file". Refs #21 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d472dfdec1
commit
7701fcac3e
9 files changed
+1137
-29
No files matched your search
@@ -293,6 +293,27 @@
|
||||
<Setter Property="ui:ControlState.PressedBackground" Value="{DynamicResource Brush.AccentPressed}" />
|
||||
</Style>
|
||||
|
||||
<!-- A structured entry of the ▾ menu (owner review 1, R3): its label, then the muted details line of a preset ("3840×2160 · HEVC
|
||||
Main10 · 24 fps"); a header is a small muted title. Sizes and numbers read as the rest of the menu. -->
|
||||
<DataTemplate x:Key="SplitButton.ItemTemplate" DataType="{x:Type v:RenderMenuItem}">
|
||||
<StackPanel x:Name="Lines" Margin="0,5" VerticalAlignment="Center">
|
||||
<TextBlock x:Name="Label" Text="{Binding Label}" TextTrimming="CharacterEllipsis" MaxWidth="320" />
|
||||
<TextBlock x:Name="Details" Text="{Binding Details}" FontSize="{StaticResource Size.Secondary}" Foreground="{DynamicResource Brush.TextMuted}"
|
||||
TextTrimming="CharacterEllipsis" MaxWidth="320" Typography.NumeralAlignment="Tabular" Margin="0,1,0,0" />
|
||||
</StackPanel>
|
||||
<DataTemplate.Triggers>
|
||||
<DataTrigger Binding="{Binding Details}" Value="{x:Null}">
|
||||
<Setter TargetName="Details" Property="Visibility" Value="Collapsed" />
|
||||
<Setter TargetName="Lines" Property="Margin" Value="0" />
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding Kind}" Value="{x:Static v:RenderMenuItemKind.Header}">
|
||||
<Setter TargetName="Label" Property="FontSize" Value="{StaticResource Size.Secondary}" />
|
||||
<Setter TargetName="Label" Property="FontWeight" Value="SemiBold" />
|
||||
<Setter TargetName="Label" Property="Foreground" Value="{DynamicResource Brush.TextMuted}" />
|
||||
</DataTrigger>
|
||||
</DataTemplate.Triggers>
|
||||
</DataTemplate>
|
||||
|
||||
<Style TargetType="v:SplitButton">
|
||||
<Setter Property="Height" Value="{StaticResource Height.Control}" />
|
||||
<Setter Property="DropDownName" Value="{l:Loc Common.MoreChoices}" />
|
||||
|
||||
Reference in new issue
Block a user