|
12 | 12 | Icon="/App.ico" |
13 | 13 | Title="{DynamicResource Text.Blame}" |
14 | 14 | MinWidth="1280" MinHeight="720"> |
15 | | - <Grid RowDefinitions="Auto,28,*,36"> |
| 15 | + <Grid RowDefinitions="Auto,32,*,36"> |
16 | 16 | <!-- TitleBar --> |
17 | 17 | <Grid Grid.Row="0" Height="28" IsVisible="{Binding !#ThisControl.UseSystemWindowFrame}"> |
18 | 18 | <!-- Bottom border --> |
|
37 | 37 | </Grid> |
38 | 38 |
|
39 | 39 | <!-- File --> |
40 | | - <Border Grid.Row="1" Padding="8,0" > |
41 | | - <Grid ColumnDefinitions="Auto,*,Auto,Auto,400,Auto"> |
| 40 | + <Border Grid.Row="1" Height="32" VerticalAlignment="Center"> |
| 41 | + <Grid Margin="8,0,0,0" ColumnDefinitions="Auto,*"> |
42 | 42 | <Path Grid.Column="0" |
43 | 43 | Width="14" Height="14" |
44 | 44 | Data="{StaticResource Icons.File}"/> |
|
47 | 47 | Margin="4,0,0,0" |
48 | 48 | VerticalAlignment="Center" |
49 | 49 | Text="{Binding File, Mode=OneWay}"/> |
50 | | - |
51 | | - <Button Grid.Column="2" |
52 | | - Classes="icon_button" |
53 | | - IsEnabled="{Binding CanBack}" |
54 | | - Width="28" |
55 | | - Command="{Binding Back}"> |
56 | | - <Path Width="12" Height="12" Data="{StaticResource Icons.TriangleLeft}"/> |
57 | | - </Button> |
58 | | - |
59 | | - <Button Grid.Column="3" |
60 | | - Classes="icon_button" |
61 | | - IsEnabled="{Binding CanForward}" |
62 | | - Width="28" |
63 | | - Command="{Binding Forward}"> |
64 | | - <Path Width="12" Height="12" Data="{StaticResource Icons.TriangleRight}"/> |
65 | | - </Button> |
66 | | - |
67 | | - <Border Grid.Column="4" Background="#40000000" CornerRadius="3" Padding="4,0" Margin="0,2"> |
68 | | - <Grid ColumnDefinitions="Auto,*"> |
69 | | - <TextBlock Grid.Column="0" |
70 | | - FontWeight="Bold" |
71 | | - Margin="0,0,6,0" |
72 | | - Text="{Binding Revision.SHA, Converter={x:Static c:StringConverters.ToShortSHA}, Mode=OneWay}"/> |
73 | | - |
74 | | - <TextBlock Grid.Column="1" |
75 | | - Text="{Binding Revision.Subject}" |
76 | | - TextTrimming="CharacterEllipsis"/> |
77 | | - </Grid> |
78 | | - </Border> |
79 | | - |
80 | | - <Button Grid.Column="5" |
81 | | - Classes="icon_button" |
82 | | - IsEnabled="{Binding PrevRevision, Converter={x:Static ObjectConverters.IsNotNull}}" |
83 | | - Width="28" Margin="4,0,0,0" |
84 | | - Command="{Binding GotoPrevRevision}" |
85 | | - ToolTip.Tip="{DynamicResource Text.Blame.BlameOnPreviousRevision}"> |
86 | | - <Path Width="14" Height="14" Data="{StaticResource Icons.GotoParent}"/> |
87 | | - </Button> |
88 | 50 | </Grid> |
89 | 51 | </Border> |
90 | 52 |
|
|
125 | 87 | </Grid> |
126 | 88 |
|
127 | 89 | <!-- Option --> |
128 | | - <Grid Grid.Row="3" Margin="8,0" Height="32" VerticalAlignment="Top"> |
129 | | - <CheckBox Content="{DynamicResource Text.Blame.IgnoreWhitespace}" |
| 90 | + <Grid Grid.Row="3" Height="32" ColumnDefinitions="*,Auto,Auto,520,Auto" VerticalAlignment="Top"> |
| 91 | + <CheckBox Grid.Column="0" |
| 92 | + Margin="8,0,0,0" |
| 93 | + Content="{DynamicResource Text.Blame.IgnoreWhitespace}" |
130 | 94 | IsChecked="{Binding IgnoreWhitespace, Mode=TwoWay}" |
131 | 95 | ToolTip.Tip="-w"/> |
| 96 | + |
| 97 | + <Button Grid.Column="1" |
| 98 | + Classes="icon_button" |
| 99 | + IsEnabled="{Binding CanBack}" |
| 100 | + Width="28" |
| 101 | + Command="{Binding Back}"> |
| 102 | + <Path Width="12" Height="12" Data="{StaticResource Icons.TriangleLeft}"/> |
| 103 | + </Button> |
| 104 | + |
| 105 | + <Button Grid.Column="2" |
| 106 | + Classes="icon_button" |
| 107 | + IsEnabled="{Binding CanForward}" |
| 108 | + Width="28" |
| 109 | + Command="{Binding Forward}"> |
| 110 | + <Path Width="12" Height="12" Data="{StaticResource Icons.TriangleRight}"/> |
| 111 | + </Button> |
| 112 | + |
| 113 | + <Border Grid.Column="3" Padding="6,0" Margin="0,2" CornerRadius="4" Background="#20000000" BoxShadow="inset 0 0 3 3 #20000000"> |
| 114 | + <Grid ColumnDefinitions="Auto,*"> |
| 115 | + <TextBlock Grid.Column="0" |
| 116 | + FontWeight="Bold" |
| 117 | + Margin="0,0,6,0" |
| 118 | + Text="{Binding Revision.SHA, Converter={x:Static c:StringConverters.ToShortSHA}, Mode=OneWay}"/> |
| 119 | + |
| 120 | + <TextBlock Grid.Column="1" |
| 121 | + Text="{Binding Revision.Subject}" |
| 122 | + TextTrimming="CharacterEllipsis"/> |
| 123 | + </Grid> |
| 124 | + </Border> |
| 125 | + |
| 126 | + <Button Grid.Column="4" |
| 127 | + Classes="icon_button" |
| 128 | + IsEnabled="{Binding PrevRevision, Converter={x:Static ObjectConverters.IsNotNull}}" |
| 129 | + Width="28" Margin="4,0" |
| 130 | + Command="{Binding GotoPrevRevision}" |
| 131 | + ToolTip.Tip="{DynamicResource Text.Blame.BlameOnPreviousRevision}"> |
| 132 | + <Path Width="14" Height="14" Data="{StaticResource Icons.GotoParent}"/> |
| 133 | + </Button> |
132 | 134 | </Grid> |
133 | 135 | </Grid> |
134 | 136 | </v:ChromelessWindow> |
0 commit comments