I'm working on a Xamarin.Forms app based on Shell, and I'm using font icons as icons for the TabBar
:
<TabBar>
<ShellContent Title="Home" Route="HomePage" ContentTemplate="{DataTemplate local:HomePage}">
<ShellContent.Icon>
<FontImageSource Glyph="{StaticResource FasIconHome}" FontFamily="FontAwesomeSolid" />
</ShellContent.Icon>
</ShellContent>
</TabBar>
I would like to specify a color only for the active tab, but only for the icon, not for the text, as we can see on Airbnb:
I didn't found any option in the Shell settings:
<Setter Property="Shell.BackgroundColor" Value="White" />
<Setter Property="Shell.ForegroundColor" Value="Black" />
<Setter Property="Shell.TitleColor" Value="Black" />
<Setter Property="Shell.DisabledColor" Value="{StaticResource Gray-300}" />
<Setter Property="Shell.UnselectedColor" Value="{StaticResource Gray-300}" />
<Setter Property="Shell.TabBarBackgroundColor" Value="White" />
<Setter Property="Shell.TabBarForegroundColor" Value="{StaticResource Gray-300}"/>
<Setter Property="Shell.TabBarUnselectedColor" Value="#95000000" />
<Setter Property="Shell.TabBarTitleColor" Value="Black" />
Is it possible?