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

Commit bb93e21

Browse files
committed
Fix hyperlink styles
1 parent eca53f6 commit bb93e21

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/GitHub.VisualStudio.UI/Views/Documents/CommitListView.xaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
66
xmlns:ghfvs="https://github.com/github/VisualStudio"
77
xmlns:v="clr-namespace:GitHub.VisualStudio.Views"
8+
xmlns:vsfx="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.14.0"
89
mc:Ignorable="d" d:DesignHeight="450" d:DesignWidth="800">
910
<Control.Resources>
1011
<ResourceDictionary>
@@ -74,7 +75,8 @@
7475
Margin="0,0,0,2"
7576
VerticalAlignment="Center">
7677
<Hyperlink Command="{Binding DataContext.ShowCommit, ElementName=timeline}"
77-
CommandParameter="{Binding Oid}">
78+
CommandParameter="{Binding Oid}"
79+
Style="{StaticResource {x:Static vsfx:VsResourceKeys.ThemedDialogHyperlinkStyleKey}}">
7880
<Run Text="{Binding AbbreviatedOid, Mode=OneWay}"/>
7981
</Hyperlink>
8082
</TextBlock>

src/GitHub.VisualStudio.UI/Views/Documents/PullRequestPageView.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<ghfvs:SharedDictionaryManager Source="pack://application:,,,/GitHub.UI;component/SharedDictionary.xaml" />
2323
<ghfvs:SharedDictionaryManager Source="pack://application:,,,/GitHub.UI.Reactive;component/SharedDictionary.xaml" />
2424
<ghfvs:SharedDictionaryManager Source="pack://application:,,,/GitHub.UI;component/Assets/Markdown.xaml" />
25+
<StaticResource ResourceKey="ThemedDialogDefaultStylesKey"/>
2526
</ResourceDictionary.MergedDictionaries>
2627

2728
<Style x:Key="Separator" TargetType="Rectangle">

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
xmlns:local="clr-namespace:GitHub.VisualStudio.Views.GitHubPane"
88
xmlns:imaging="clr-namespace:Microsoft.VisualStudio.Imaging;assembly=Microsoft.VisualStudio.Imaging"
99
xmlns:catalog="clr-namespace:Microsoft.VisualStudio.Imaging;assembly=Microsoft.VisualStudio.ImageCatalog"
10+
xmlns:vsfx="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.14.0"
1011
mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300"
1112
Name="root">
1213

@@ -166,7 +167,8 @@
166167
</TextBlock.Style>
167168
<ghfvs:OcticonImage Icon="comment_discussion" Height="10" Margin="-2 0"/>
168169
<Hyperlink Command="{Binding DataContext.OpenFirstComment, ElementName=root}"
169-
CommandParameter="{Binding}">
170+
CommandParameter="{Binding}"
171+
Style="{StaticResource {x:Static vsfx:VsResourceKeys.ThemedDialogHyperlinkStyleKey}}">
170172
<Run Text="{Binding CommentCount, Mode=OneWay}"/>
171173
</Hyperlink>
172174
</TextBlock>

0 commit comments

Comments
 (0)