feat(ui): maximize work console via green traffic-light dot
This commit is contained in:
@@ -24,6 +24,18 @@
|
||||
<Setter Property="TextElement.Foreground" Value="{StaticResource AccentBrush}" />
|
||||
</Style>
|
||||
|
||||
<!-- Traffic-light dot button: no chrome, just the ellipse -->
|
||||
<Style Selector="Button.dot-btn">
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="BorderThickness" Value="0" />
|
||||
<Setter Property="Padding" Value="0" />
|
||||
<Setter Property="CornerRadius" Value="0" />
|
||||
<Setter Property="Cursor" Value="Hand" />
|
||||
</Style>
|
||||
<Style Selector="Button.dot-btn /template/ ContentPresenter">
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
</Style>
|
||||
|
||||
<!-- Terminal prompt action: bracketed text, no button chrome -->
|
||||
<Style Selector="Button.prompt-action">
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
@@ -60,12 +72,22 @@
|
||||
<Grid DockPanel.Dock="Top" ColumnDefinitions="Auto,*,Auto"
|
||||
Background="{DynamicResource Surface2Brush}" Height="28">
|
||||
|
||||
<!-- Traffic-light dots -->
|
||||
<!-- Traffic-light dots; green toggles console maximize -->
|
||||
<StackPanel Grid.Column="0" Orientation="Horizontal" Spacing="6"
|
||||
Margin="12,0" VerticalAlignment="Center">
|
||||
<Ellipse Classes="dot-red" />
|
||||
<Ellipse Classes="dot-yellow" />
|
||||
<Ellipse Classes="dot-green" />
|
||||
<Button Classes="dot-btn"
|
||||
Command="{Binding ToggleConsoleMaximizedCommand}"
|
||||
ToolTip.Tip="{loc:Tr console.maximizeTip}">
|
||||
<Panel>
|
||||
<Ellipse Classes="dot-green" />
|
||||
<PathIcon Data="{StaticResource Icon.ArrowOut}"
|
||||
Width="6" Height="6"
|
||||
Foreground="{DynamicResource MossBrightBrush}"
|
||||
HorizontalAlignment="Center" VerticalAlignment="Center" />
|
||||
</Panel>
|
||||
</Button>
|
||||
</StackPanel>
|
||||
|
||||
<!-- Right cluster: info header (model · turns · diff) + status chip -->
|
||||
|
||||
Reference in New Issue
Block a user