|
19 | 19 | </Grid.RowDefinitions>
|
20 | 20 |
|
21 | 21 | <!-- TitleBar -->
|
22 |
| - <Grid Grid.Row="0" ColumnDefinitions="Auto,Auto,*,Auto" Height="30" IsVisible="{Binding !#ThisControl.UseSystemWindowFrame}"> |
| 22 | + <Grid Grid.Row="0" Height="28" IsVisible="{Binding !#ThisControl.UseSystemWindowFrame}"> |
23 | 23 | <!-- Bottom border -->
|
24 |
| - <Border Grid.Column="0" Grid.ColumnSpan="4" |
25 |
| - Background="{DynamicResource Brush.TitleBar}" |
| 24 | + <Border Background="{DynamicResource Brush.TitleBar}" |
26 | 25 | BorderThickness="0,0,0,1" BorderBrush="{DynamicResource Brush.Border2}"
|
27 | 26 | DoubleTapped="MaximizeOrRestoreWindow"
|
28 | 27 | PointerPressed="BeginMoveWindow"/>
|
29 | 28 |
|
30 |
| - <!-- Caption Buttons (macOS) --> |
31 |
| - <Border Grid.Column="0" IsVisible="{OnPlatform False, macOS=True}"> |
32 |
| - <v:CaptionButtonsMacOS/> |
33 |
| - </Border> |
34 |
| - |
35 |
| - <!-- Icon --> |
36 |
| - <Path Grid.Column="1" Margin="8,0,0,0" Width="12" Height="12" Data="{StaticResource Icons.Blame}"/> |
37 |
| - |
38 |
| - <!-- Title --> |
39 |
| - <TextBlock Grid.Column="2" Margin="8,0,0,0" Text="{DynamicResource Text.Blame}" FontWeight="Bold" IsHitTestVisible="False" VerticalAlignment="Center"/> |
| 29 | + <Path Width="12" Height="12" |
| 30 | + Margin="10,0,0,0" |
| 31 | + HorizontalAlignment="Left" |
| 32 | + Data="{StaticResource Icons.Blame}" |
| 33 | + IsVisible="{OnPlatform True, macOS=False}"/> |
40 | 34 |
|
| 35 | + <TextBlock Classes="bold" |
| 36 | + Text="{DynamicResource Text.Blame}" |
| 37 | + HorizontalAlignment="Center" VerticalAlignment="Center" |
| 38 | + IsHitTestVisible="False"/> |
| 39 | + |
41 | 40 | <!-- Caption Buttons (Windows/Linux) -->
|
42 |
| - <Border Grid.Column="3" IsVisible="{OnPlatform True, macOS=False}"> |
43 |
| - <v:CaptionButtons/> |
44 |
| - </Border> |
| 41 | + <v:CaptionButtons HorizontalAlignment="Right" IsVisible="{OnPlatform True, macOS=False}"/> |
45 | 42 | </Grid>
|
46 | 43 |
|
47 | 44 | <!-- File -->
|
|
0 commit comments