Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for duotone(?) icons #1279

Open
chucker opened this issue Nov 18, 2024 · 0 comments
Open

Support for duotone(?) icons #1279

chucker opened this issue Nov 18, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@chucker
Copy link
Contributor

chucker commented Nov 18, 2024

Is your feature request related to a problem? Please describe

[ Preface: I'm not sure that's the right nomenclature for WinUI / Fluent Icons. The WinUI 3 Gallery app doesn't seem to show this anywhere.

FontAwesome calls them "duotone". Apple's SF Symbols calls similar approaches "Palette/Hierarchical/Multicolor Rendering", depending on what color palette you use. ]

A typical Windows 11 context menu will feature icons that are largely monochrome, but not entirely:

image

This appears to be a combination of three colors:

  • a dark grey as the primary foreground color
  • a blue (for example, the gear in Display settings, and the down arrow in Sort by)
  • a white as the background fill (most noticeable with New)

I don't believe this is currently possible in WPF UI.

Describe the solution you'd like

Perhaps SymbolIcon should provide a SecondaryForeground or AccentForeground property that takes a Brush.

In addition, to avoid breaking backwards compatibility, perhaps it should provide a ColoringMode property, with:

enum ColoringMode
{
    Custom = 0, // the default, for compat reasons (maybe this should be called `Monochrome` instead?)
    Automatic
}

Describe alternatives you've considered

For now, I manually set one color for each icon. This seems less than ideal.

Additional context

I'm unsure to what extent Fluent System Icons provides this context. For example, does the glyph ArrowSort24 say which portions are supposed to be rendered in which semantic color?

@chucker chucker added the enhancement New feature or request label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant