From 20e1caefceb917b8808ff0d6bf9e12c5207f0618 Mon Sep 17 00:00:00 2001 From: Jakub Florkowski Date: Sun, 14 Jul 2024 16:54:39 +0200 Subject: [PATCH] [Android] Honor IconImageSource.FontImageSource color --- src/Core/src/Platform/SwipeViewExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/src/Platform/SwipeViewExtensions.cs b/src/Core/src/Platform/SwipeViewExtensions.cs index 37eb682bed4b..536c163bf6b9 100644 --- a/src/Core/src/Platform/SwipeViewExtensions.cs +++ b/src/Core/src/Platform/SwipeViewExtensions.cs @@ -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;