Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit a3b08e8

Browse files
Fix Snackbar Foreground (#540)
Co-authored-by: Andrei <[email protected]>
1 parent 74d28db commit a3b08e8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

XamarinCommunityToolkit/Views/SnackBar/Helpers/SnackBarLayout.uwp.wpf.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,17 @@ public SnackBarLayout(SnackBarOptions options)
2727
{
2828
Text = options.MessageOptions.Message,
2929
FontSize = options.MessageOptions.FontSize,
30-
FontFamily = new FontFamily(options.MessageOptions.FontFamily)
30+
FontFamily = new FontFamily(options.MessageOptions.FontFamily),
31+
Foreground = options.MessageOptions.Foreground.ToBrush()
3132
};
3233
#else
3334
Background = options.BackgroundColor.ToBrush();
3435
var messageLabel = new Label
3536
{
3637
Content = options.MessageOptions.Message,
3738
FontSize = options.MessageOptions.FontSize,
38-
FontFamily = new FontFamily(options.MessageOptions.FontFamily)
39+
FontFamily = new FontFamily(options.MessageOptions.FontFamily),
40+
Foreground = options.MessageOptions.Foreground.ToBrush()
3941
};
4042
#endif
4143
Children.Add(messageLabel);

0 commit comments

Comments
 (0)