Skip to content

Commit

Permalink
fix: add underlining for HyperlinkButton on WinUI
Browse files Browse the repository at this point in the history
  • Loading branch information
ramezgerges committed Oct 17, 2024
1 parent f90fe28 commit c6f74f0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
mc:Ignorable="d">

<FontFamily x:Key="CupertinoHyperlinkButtonFontFamily">SF Pro</FontFamily>
<x:Boolean x:Key="HyperlinkUnderlineVisible">True</x:Boolean>
<x:String x:Key="MinusGlyphPathStyle">M0 1.67236H5.57812V0.327637H0V1.67236Z</x:String>

<Style x:Key="CupertinoHyperlinkButtonStyle"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">

<x:Boolean x:Key="HyperlinkUnderlineVisible">True</x:Boolean>

<Style x:Key="MaterialHyperlinkButtonStyle"
TargetType="HyperlinkButton">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@

<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Default">
<StaticResource x:Key="HyperlinkButtonForeground" ResourceKey="PrimaryBrush" />
<x:Boolean x:Key="HyperlinkUnderlineVisible">True</x:Boolean>
<StaticResource x:Key="HyperlinkButtonForeground" ResourceKey="PrimaryBrush" />
<StaticResource x:Key="HyperlinkButtonForegroundPointerOver" ResourceKey="PrimaryBrush" />
<StaticResource x:Key="HyperlinkButtonForegroundPressed" ResourceKey="PrimaryBrush" />
<StaticResource x:Key="HyperlinkButtonForegroundDisabled" ResourceKey="OnSurfaceLowBrush" />
Expand All @@ -33,6 +34,7 @@
</ResourceDictionary>

<ResourceDictionary x:Key="Light">
<x:Boolean x:Key="HyperlinkUnderlineVisible">True</x:Boolean>
<StaticResource x:Key="HyperlinkButtonForeground" ResourceKey="PrimaryBrush" />
<StaticResource x:Key="HyperlinkButtonForegroundPointerOver" ResourceKey="PrimaryBrush" />
<StaticResource x:Key="HyperlinkButtonForegroundPressed" ResourceKey="PrimaryBrush" />
Expand Down

0 comments on commit c6f74f0

Please sign in to comment.