Skip to content

[Windows] MauiIcon Color and TintColor doesn't work in taskbar and is inconsistent elsewhere #7207

@janseris

Description

@janseris

Description

The documentation says:

A background color for the app icon can also be specified:
<MauiIcon Include="Resources\Images\appicon.svg" Color="#512BD4" />

and

https://docs.microsoft.com/en-us/dotnet/maui/user-interface/images/app-icons

A background color for the app icon can also be specified:
<MauiIcon Include="Resources\Images\appicon.svg" Color="#512BD4" />


Edit: tested with svg and png with transparent background as well.

This single configuration has 5 different looks in the system:

<MauiIcon Include="Resources\appicon.svg" ForegroundFile="Resources\appicon.svg" TintColor="White" Color="White" />

Task manager - additional blue line:
image

Task manager - details tab - no icon:
image

Windows taskbar - TintColor and Color not applied (well, Color (background) actually once worked randomly #7200)
image

Settings - blue rectangle:
image

Window title - nothing
image

Steps to Reproduce

use MauiIcon on Windows

Version with bug

Release Candidate 3 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

latest

Did you find any workaround?

No response

Relevant log output

No response

Metadata

Metadata

Assignees

Labels

area-single-projectSplash Screen, Multi-Targeting, MauiFont, MauiImage, MauiAsset, Resizetizerfixed-in-6.0.408Look for this fix in 6.0.408!platform/windowss/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions