Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

iOS, TabbedPage icons from FontImageSource showed but not grayed when icon is not selected[Bug] #8556

Closed
aperrone opened this issue Nov 18, 2019 · 7 comments
Labels
p/iOS 🍎 s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. s/unverified New report that has yet to be verified t/bug 🐛

Comments

@aperrone
Copy link

Description

I made an application based on a tabbed page; in iOS, I thought of using a FontImageSource to generate the icons to be displayed in the bottom bar.
The solution worked and the icons are correctly displayed; unfortunately they are never colored as disabled, ie they are never grayed out.

Steps to Reproduce

  1. Create a project Master/Detail for iOS
  2. Change the icon source to a FontImageSource

`

    <NavigationPage Title="my Title">
        <NavigationPage.IconImageSource>
            <OnPlatform x:TypeArguments="FontImageSource">
                <On Platform="iOS">
                    <FontImageSource FontFamily="{StaticResource MaterialFontFamily}" Glyph="{StaticResource IconCancel}" Color="#FF000000" />
                </On>
            </OnPlatform>
        </NavigationPage.IconImageSource>
        <x:Arguments>
            ...
        </x:Arguments>
    </NavigationPage>

`

Expected Behavior

The selected icon become black. The other icons become grayed.

Actual Behavior

All icons become black, selected page or not selected pages. No icons become grayed.

Basic Information

  • Platform Target Frameworks:
    • iOS: 13.2

Screenshots

image

@aperrone aperrone added s/unverified New report that has yet to be verified t/bug 🐛 labels Nov 18, 2019
@MSiccDev
Copy link

I had a similar problem with my tabbed based icons (image assets, however). The only way to get rid of it was to explicitly specify the SelectedTabColor and UnSelectedTabColor (which was mentioned as “solution” in another issue). Long story short: I also expected the coloring to work out of the box.

@aperrone
Copy link
Author

I tried but it doesn't work...

Xamarin riesce ogni giorno a stupirmi.

@samhouts
Copy link
Member

@aperrone Can you please attach a small project that demonstrates this issue? Thanks!

@samhouts samhouts added s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. labels Nov 25, 2019
@samhouts
Copy link
Member

Since we haven't heard from you in more than 30 days, we hope this issue is no longer affecting you. If it is, please reopen this issue and provide the requested information so that we can look into it further. Thank you!

@pboisso
Copy link

pboisso commented Jun 16, 2020

Same behavior noticed here. Why SelectedTabColor and UnSelectedTabColor does not have default OS values?

@twelve-cgn
Copy link

Similar behavior here. I assign the icons via FontImageSource and set both SelectedTabColor and UnselectedTabColor. Everything is displayed correctly in Android, under iOS only the text is set to UnselectedTabColor, not the icon. That always stays on SelectedTabColor.

@RadoslawKubas
Copy link

I have exactly same problem, when tab icons are from FontImageSource, selected / unselected colors are not set. Is there any solution (except using png icons) ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p/iOS 🍎 s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. s/unverified New report that has yet to be verified t/bug 🐛
Projects
None yet
Development

No branches or pull requests

6 participants