From 5bf0d113419f42e95d505b275b9fa2c66ca43606 Mon Sep 17 00:00:00 2001 From: Jakub Florkowski Date: Fri, 10 Jan 2025 18:54:14 +0100 Subject: [PATCH 1/2] [Android] Top bar item colors - fix --- src/Controls/src/Core/Platform/Android/TabbedPageManager.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Controls/src/Core/Platform/Android/TabbedPageManager.cs b/src/Controls/src/Core/Platform/Android/TabbedPageManager.cs index 59f72a77bf59..c956c64a5343 100644 --- a/src/Controls/src/Core/Platform/Android/TabbedPageManager.cs +++ b/src/Controls/src/Core/Platform/Android/TabbedPageManager.cs @@ -890,6 +890,7 @@ void SetIconColorFilter(Page page, TabLayout.Tab tab, bool selected) icon.Mutate(); icon.SetState(_stateSet); + _tabLayout.TabIconTint = colors; ADrawableCompat.SetTintList(icon, colors); } } From a083c3e5a3d0a3defbe3338d0cbdd4c0070554e0 Mon Sep 17 00:00:00 2001 From: Jakub Florkowski Date: Tue, 12 Aug 2025 00:13:20 +0200 Subject: [PATCH 2/2] Avoid tab icon tint for FontImageSource on Android Prevents applying TabIconTint when the tab icon is a FontImageSource, as it manages its own color. This ensures correct icon coloring for font-based icons in TabbedPageManager. --- .../src/Core/Platform/Android/TabbedPageManager.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Controls/src/Core/Platform/Android/TabbedPageManager.cs b/src/Controls/src/Core/Platform/Android/TabbedPageManager.cs index c956c64a5343..ef0283e01257 100644 --- a/src/Controls/src/Core/Platform/Android/TabbedPageManager.cs +++ b/src/Controls/src/Core/Platform/Android/TabbedPageManager.cs @@ -890,7 +890,12 @@ void SetIconColorFilter(Page page, TabLayout.Tab tab, bool selected) icon.Mutate(); icon.SetState(_stateSet); - _tabLayout.TabIconTint = colors; + + // The FontImageSource has its own color, so we don't need to apply the tint list. + if (page.IconImageSource is not FontImageSource) + { + _tabLayout.TabIconTint = colors; + } ADrawableCompat.SetTintList(icon, colors); } }