Skip to content

Commit 5528fdb

Browse files
kubafloPureWeen
authored andcommitted
[Android] Top bar item colors - fix (#26964)
* [Android] Top bar item colors - fix * 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 aabe81d commit 5528fdb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

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

891891
icon.Mutate();
892892
icon.SetState(_stateSet);
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+
}
893899
ADrawableCompat.SetTintList(icon, colors);
894900
}
895901
}

0 commit comments

Comments
 (0)