maui icon indicating copy to clipboard operation
maui copied to clipboard

Custom shell back button is always white in colour.

Open GlacierFox opened this issue 1 year ago • 2 comments

Description

I've got a custom back button on some of my pages, the actual SVG file is coloured yellow but it's showing up as white in the app, in both light and dark modes.

Screenshot_20240516_121934

<Shell.BackButtonBehavior>
    <BackButtonBehavior IconOverride="system_icon_page_back_button.png" />
</Shell.BackButtonBehavior>

I had a look at issue #20811 which concerns the default back button being white and made the stated alterations in my styles.xaml but I'm still only getting white.

<Setter Property="Shell.ForegroundColor" Value="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource Secondary}}" /> (The secondary color is yellow in hue.)

Steps to Reproduce

Apply a custom colored back icon with a BackButtonBehaviour. Observe that it's still white.

Link to public reproduction project repository

No response

Version with bug

8.0.40 SR5

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 14 - API 34

Did you find any workaround?

No

Relevant log output

No response

GlacierFox avatar May 16 '24 11:05 GlacierFox

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

github-actions[bot] avatar May 16 '24 11:05 github-actions[bot]

Verified this issue with Visual Studio 17.10 Preview 7.0(8.0.408.0.20&8.0.3). Can repro on Android platform.

Zhanglirong-Winnie avatar May 17 '24 07:05 Zhanglirong-Winnie

This also appears to apply to the ToolbarItems icon (notice that the back button is also white)

Image

d2dyno1 avatar Dec 11 '24 10:12 d2dyno1