Skip to content

Commit a083c3e

Browse files
committed
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.
1 parent 5bf0d11 commit a083c3e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Controls/src/Core/Platform/Android/TabbedPageManager.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,12 @@ void SetIconColorFilter(Page page, TabLayout.Tab tab, bool selected)
890890

891891
icon.Mutate();
892892
icon.SetState(_stateSet);
893-
_tabLayout.TabIconTint = colors;
893+
894+
// The FontImageSource has its own color, so we don't need to apply the tint list.
895+
if (page.IconImageSource is not FontImageSource)
896+
{
897+
_tabLayout.TabIconTint = colors;
898+
}
894899
ADrawableCompat.SetTintList(icon, colors);
895900
}
896901
}

0 commit comments

Comments
 (0)