Skip to content

Commit 94a1e26

Browse files
committed
fix(Hyperlink): Add hyperlink foreground color for macOS
1 parent cecc2a8 commit 94a1e26

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

src/Uno.UI/UI/Xaml/Documents/Hyperlink.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ private static Brush DefaultForeground
2222
{
2323
if (_defaultForeground == null)
2424
{
25-
#if __IOS__ || __ANDROID__
25+
#if __IOS__ || __MACOS__ || __ANDROID__
2626
_defaultForeground = GetDefaultForeground();
2727
#else
2828
_defaultForeground = null;
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#if __MACOS__
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Text;
5+
using Windows.UI.Xaml.Media;
6+
using Windows.UI;
7+
8+
namespace Windows.UI.Xaml.Documents
9+
{
10+
public partial class Hyperlink
11+
{
12+
private static Brush GetDefaultForeground()
13+
{
14+
// https://developer.apple.com/macos/human-interface-guidelines/visual-design/color/
15+
return new SolidColorBrush(Color.FromArgb(255, 0, 122, 255));
16+
}
17+
}
18+
}
19+
#endif

0 commit comments

Comments
 (0)