Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit a3fd4d2

Browse files
committed
Update expander header styles
1 parent 122a9c1 commit a3fd4d2

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

src/GitHub.VisualStudio.UI/Views/GitHubPane/PullRequestAnnotationsView.xaml

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -30,37 +30,35 @@
3030
<StackPanel>
3131
<StackPanel DockPanel.Dock="Top" Orientation="Vertical">
3232
<StackPanel Margin="8 0">
33-
<TextBlock FontSize="16" VerticalAlignment="Center">
34-
<Run FontWeight="SemiBold" Text="{Binding CheckSuiteName, Mode=OneWay}"/>
35-
<Run Text="/"/>
36-
<Run FontWeight="SemiBold" Text="{Binding CheckRunName, Mode=OneWay}"/>
33+
<TextBlock FontSize="16" VerticalAlignment="Center">
34+
<Run FontWeight="SemiBold" Text="{Binding CheckSuiteName, Mode=OneWay}"/>
35+
<Run Text="/"/>
36+
<Run FontWeight="SemiBold" Text="{Binding CheckRunName, Mode=OneWay}"/>
3737

38-
<Run>for</Run>
38+
<Run>for</Run>
3939

40-
<Hyperlink Command="{Binding NavigateToPullRequest}">
41-
<Run>#</Run><Run Text="{Binding PullRequestNumber, Mode=OneWay}"/>
42-
</Hyperlink>
43-
</TextBlock>
44-
45-
<TextBlock Foreground="{DynamicResource GitHubVsGrayText}"
46-
Margin="0"
47-
Text="{Binding PullRequestTitle}"
48-
TextWrapping="Wrap"/>
40+
<Hyperlink Command="{Binding NavigateToPullRequest}">
41+
<Run>#</Run><Run Text="{Binding PullRequestNumber, Mode=OneWay}"/>
42+
</Hyperlink>
43+
</TextBlock>
4944

50-
45+
<TextBlock Foreground="{DynamicResource GitHubVsGrayText}"
46+
Margin="0"
47+
Text="{Binding PullRequestTitle}"
48+
TextWrapping="Wrap"/>
5149
</StackPanel>
5250
<Expander Header="Body" Margin="0 4"
5351
FontWeight="SemiBold"
5452
Visibility="{Binding CheckRunSummary, Converter={ghfvs:NullOrWhitespaceToVisibilityConverter}}">
5553
<markdig:MarkdownViewer Margin="21 0 8 0" FontWeight="Normal" Markdown="{Binding CheckRunSummary}" />
5654
</Expander>
5755

58-
<Expander Header="Details"
59-
FontWeight="SemiBold"
60-
Margin="0 4"
56+
<Expander Margin="0 4"
6157
Visibility="{Binding CheckRunText, Converter={ghfvs:NullOrWhitespaceToVisibilityConverter}}">
58+
<Expander.Header>
59+
<TextBlock FontWeight="SemiBold" Text="Details" />
60+
</Expander.Header>
6261
<TextBlock Margin="21 0 8 0" FontFamily="Consolas"
63-
FontWeight="Normal"
6462
Foreground="{DynamicResource VsBrush.GrayText}">
6563
<Run Text="{Binding CheckRunText, Mode=OneWay}"/>
6664
</TextBlock>
@@ -71,10 +69,10 @@
7169
<ItemsControl ItemsSource="{Binding AnnotationsDictionary}">
7270
<ItemsControl.ItemTemplate>
7371
<DataTemplate>
74-
<StackPanel>
72+
<StackPanel Margin="0 4">
7573
<Expander>
7674
<Expander.Header>
77-
<Label Foreground="{DynamicResource VsBrush.WindowText}" Content="{Binding Key}" FontWeight="SemiBold" ToolTip="{Binding Key}" />
75+
<TextBlock Foreground="{DynamicResource VsBrush.WindowText}" Text="{Binding Key}" FontWeight="SemiBold" ToolTip="{Binding Key}" />
7876
</Expander.Header>
7977

8078
<ItemsControl ItemsSource="{Binding Value}">

0 commit comments

Comments
 (0)