Skip to content

Commit b52997d

Browse files
committed
Convert hyperlink colors into references
1 parent 2526400 commit b52997d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Rubberduck.Core/UI/Controls/LinkButton.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
</ControlTemplate>
3333
</Setter.Value>
3434
</Setter>
35-
<Setter Property="Foreground" Value="Blue" />
35+
<Setter Property="Foreground" Value="{StaticResource CaptionHyperlinkBrush}" />
3636
<Setter Property="Cursor" Value="Hand" />
3737
<Style.Triggers>
3838
<Trigger Property="IsMouseOver" Value="true">
39-
<Setter Property="Foreground" Value="Red" />
39+
<Setter Property="Foreground" Value="{StaticResource CaptionHyperlinkVisitedBrush}" />
4040
</Trigger>
4141
<Trigger Property="IsEnabled" Value="false">
4242
<Setter Property="Foreground" Value="{StaticResource CaptionDisabledBrush}" />

Rubberduck.Core/UI/Styles/DefaultStyle.xaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
<Color x:Key="ExpanderBackgroundColor">#FFFFFFFF</Color>
3838
<Color x:Key="CaptionLightColor">#FFFFFFFF</Color>
3939
<Color x:Key="CaptionDisabledColor">#FF808080</Color>
40+
<Color x:Key="CaptionHyperlinkColor">#FF0000FF</Color>
41+
<Color x:Key="CaptionHyperlinkVisitedColor">#FFFF0000</Color>
4042
<Color x:Key="BackgroundDarkColor">#FFA9A9A9</Color>
4143
<Color x:Key="BackgroundLightColor">#FFF5F5F5</Color>
4244
<Color x:Key="HeaderBackgroundDarkColor">#FFA9A9A9</Color>
@@ -63,6 +65,8 @@
6365
<SolidColorBrush x:Key="ExpanderBorderBrush" Color="{StaticResource ExpanderBorderColor}"/>
6466
<SolidColorBrush x:Key="CaptionLightBrush" Color="{StaticResource CaptionLightColor}"/>
6567
<SolidColorBrush x:Key="CaptionDisabledBrush" Color="{StaticResource CaptionDisabledColor}"/>
68+
<SolidColorBrush x:Key="CaptionHyperlinkBrush" Color="{StaticResource CaptionHyperlinkColor}"/>
69+
<SolidColorBrush x:Key="CaptionHyperlinkVisitedBrush" Color="{StaticResource CaptionHyperlinkVisitedColor}"/>
6670
<SolidColorBrush x:Key="BackgroundDarkBrush" Color="{StaticResource BackgroundDarkColor}"/>
6771
<SolidColorBrush x:Key="BackgroundLightBrush" Color="{StaticResource BackgroundLightColor}"/>
6872
<SolidColorBrush x:Key="BackgroundWhiteBrush" Color="{StaticResource BackgroundWhiteColor}"/>

0 commit comments

Comments
 (0)