|
18 | 18 | <StackPanel Grid.Column="1" Margin="16,0,8,0" Orientation="Vertical"> |
19 | 19 | <TextBlock Classes="group_header_label" Margin="0" Text="{DynamicResource Text.CommitDetail.Info.Author}"/> |
20 | 20 | <StackPanel Orientation="Horizontal" Margin="0,10,0,8"> |
21 | | - <SelectableTextBlock Text="{Binding Author.Name}" FontSize="12" Margin="2,0,8,0"/> |
22 | | - <SelectableTextBlock Text="{Binding Author.Email}" FontSize="12" Foreground="{DynamicResource Brush.FG2}"/> |
| 21 | + <SelectableTextBlock Text="{Binding Author.Name}" Margin="2,0,8,0"/> |
| 22 | + <SelectableTextBlock Text="{Binding Author.Email}" Foreground="{DynamicResource Brush.FG2}"/> |
23 | 23 | </StackPanel> |
24 | | - <SelectableTextBlock Text="{Binding AuthorTimeStr}" Margin="2,0,0,0" FontSize="11" Foreground="{DynamicResource Brush.FG2}"/> |
| 24 | + <SelectableTextBlock Text="{Binding AuthorTimeStr}" |
| 25 | + Margin="2,0,0,0" |
| 26 | + FontSize="{Binding Source={x:Static vm:Preference.Instance}, Path=DefaultFontSize, Converter={x:Static c:FontSizeModifyConverters.Decrease}}" |
| 27 | + Foreground="{DynamicResource Brush.FG2}"/> |
25 | 28 | </StackPanel> |
26 | 29 |
|
27 | 30 | <!-- Committer --> |
28 | 31 | <v:Avatar Grid.Column="2" Width="64" Height="64" HorizontalAlignment="Right" User="{Binding Committer}" IsVisible="{Binding IsCommitterVisible}"/> |
29 | 32 | <StackPanel Grid.Column="3" Margin="16,0,8,0" Orientation="Vertical" IsVisible="{Binding IsCommitterVisible}"> |
30 | 33 | <TextBlock Classes="group_header_label" Margin="0" Text="{DynamicResource Text.CommitDetail.Info.Committer}"/> |
31 | 34 | <StackPanel Orientation="Horizontal" Margin="0,10,0,8"> |
32 | | - <SelectableTextBlock Text="{Binding Committer.Name}" FontSize="12" Margin="2,0,8,0"/> |
33 | | - <SelectableTextBlock Text="{Binding Committer.Email}" FontSize="12" Foreground="{DynamicResource Brush.FG2}"/> |
| 35 | + <SelectableTextBlock Text="{Binding Committer.Name}" Margin="2,0,8,0"/> |
| 36 | + <SelectableTextBlock Text="{Binding Committer.Email}" Foreground="{DynamicResource Brush.FG2}"/> |
34 | 37 | </StackPanel> |
35 | | - <SelectableTextBlock Text="{Binding CommitterTimeStr}" Margin="2,0,0,0" FontSize="11" Foreground="{DynamicResource Brush.FG2}"/> |
| 38 | + <SelectableTextBlock Text="{Binding CommitterTimeStr}" |
| 39 | + Margin="2,0,0,0" |
| 40 | + FontSize="{Binding Source={x:Static vm:Preference.Instance}, Path=DefaultFontSize, Converter={x:Static c:FontSizeModifyConverters.Decrease}}" |
| 41 | + Foreground="{DynamicResource Brush.FG2}"/> |
36 | 42 | </StackPanel> |
37 | 43 | </Grid> |
38 | 44 |
|
|
43 | 49 | <Grid RowDefinitions="24,Auto,Auto,Auto" ColumnDefinitions="96,*"> |
44 | 50 | <!-- SHA --> |
45 | 51 | <TextBlock Grid.Row="0" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.SHA}" /> |
46 | | - <SelectableTextBlock Grid.Row="0" Grid.Column="1" Text="{Binding SHA}" Margin="12,0,0,0" FontSize="12" VerticalAlignment="Center" FontFamily="{Binding Source={x:Static vm:Preference.Instance}, Path=MonospaceFont}"/> |
| 52 | + <SelectableTextBlock Grid.Row="0" Grid.Column="1" Text="{Binding SHA}" Margin="12,0,0,0" VerticalAlignment="Center" FontFamily="{Binding Source={x:Static vm:Preference.Instance}, Path=MonospaceFont}"/> |
47 | 53 |
|
48 | 54 | <!-- PARENTS --> |
49 | 55 | <TextBlock Grid.Row="1" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.Parents}" IsVisible="{Binding Parents.Count, Converter={x:Static c:IntConverters.IsGreaterThanZero}}"/> |
|
58 | 64 | <DataTemplate> |
59 | 65 | <TextBlock Classes="monospace" |
60 | 66 | Text="{Binding Converter={x:Static c:StringConverters.ToShortSHA}}" |
61 | | - FontSize="12" |
62 | 67 | Foreground="DarkOrange" |
63 | 68 | TextDecorations="Underline" |
64 | 69 | Margin="0,0,16,0" |
|
95 | 100 | <!-- Messages --> |
96 | 101 | <TextBlock Grid.Row="3" Grid.Column="0" Classes="info_label" Text="{DynamicResource Text.CommitDetail.Info.Message}" VerticalAlignment="Top" Margin="0,4,0,0" /> |
97 | 102 | <ScrollViewer Grid.Row="3" Grid.Column="1" Margin="12,5,0,0" MaxHeight="100" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto"> |
98 | | - <SelectableTextBlock Text="{Binding FullMessage}" FontSize="12" FontFamily="{Binding Source={x:Static vm:Preference.Instance}, Path=MonospaceFont}" TextWrapping="Wrap"/> |
| 103 | + <SelectableTextBlock Text="{Binding FullMessage}" FontFamily="{Binding Source={x:Static vm:Preference.Instance}, Path=MonospaceFont}" TextWrapping="Wrap"/> |
99 | 104 | </ScrollViewer> |
100 | 105 | </Grid> |
101 | 106 |
|
|
0 commit comments