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

Commit 1090baa

Browse files
committed
Add error message style
1 parent b0213fc commit 1090baa

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/GitHub.VisualStudio/UI/Views/PullRequestDetailView.xaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@
8282
<Setter Property="Margin" Value="0 4"/>
8383
</Style>
8484

85+
<Style x:Key="CheckoutErrorMessage" TargetType="TextBlock">
86+
<Setter Property="Foreground" Value="Red" />
87+
</Style>
88+
8589
<!-- Hyperlink has no Visibility property, sigh. Hack around this by making the text
8690
transparent and 1 px in size. -->
8791
<Style x:Key="HyperlinkHiddenWhenDisabled" TargetType="Hyperlink">
@@ -269,8 +273,7 @@
269273
<TextBlock Margin="0 4" TextWrapping="Wrap">
270274
<Run Text="{Binding CheckoutDisabledMessage}"/>
271275
<TextBlock.Style>
272-
<Style TargetType="TextBlock">
273-
<Setter Property="Foreground" Value="Red" />
276+
<Style TargetType="TextBlock" BasedOn="{StaticResource CheckoutErrorMessage}">
274277
<Style.Triggers>
275278
<DataTrigger Binding="{Binding CheckoutDisabledMessage}" Value="{x:Null}">
276279
<Setter Property="Visibility" Value="Collapsed" />

0 commit comments

Comments
 (0)