Skip to content

Commit

Permalink
[Android] Honor IconImageSource.FontImageSource color (#23604)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubaflo authored Jul 16, 2024
1 parent 09d3049 commit 1c3422a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/src/Platform/SwipeViewExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static partial class SwipeViewExtensions
{
Color? backgroundColor = swipeItemMenuItem.Background?.ToColor();

if (backgroundColor == null)
if (backgroundColor == null || (swipeItemMenuItem.Source is IFontImageSource fontImageSource && fontImageSource.Color != null))
return null;

var luminosity = 0.2126f * backgroundColor.Red + 0.7152f * backgroundColor.Green + 0.0722f * backgroundColor.Blue;
Expand Down

0 comments on commit 1c3422a

Please sign in to comment.