question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Different accent colors on Windows10 and Windows11

See original GitHub issue

Describe the bug

Brushes such as AccentLight2 AccentLight3 or AccentDark2 look different on Windows10 and Windows11. This changes the color presentation of the application and negatively affects visual states if these colors are used there.

That issue also in the WindowsAppSDK repository: https://github.com/microsoft/WindowsAppSDK/issues/1617

Steps to reproduce the bug

<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
       <Border x:Name="brush0" Background="{ThemeResource SystemAccentColor}" Width="200" Height="60" Margin="20"/>
       <Border x:Name="brush1" Background="{ThemeResource SystemAccentColorLight2}" Width="100" Height="100" Margin="20"/>
       <Border x:Name="brush2" Background="{ThemeResource SystemAccentColorLight3}" Width="100" Height="100" Margin="20"/>
       <ListBox x:Name="lb" />
       <Button x:Name="myButton" Click="myButton_Click">Click Me</Button>
   </StackPanel>

Expected behavior

Colors should look the same

Screenshots

image

NuGet package version

WinUI 3 - Windows App SDK 0.8: 0.8.0 (If you’re seeing your issue in older previews of WinUI 3, please try this release)

Windows app type

  • UWP
  • Win32

Device form factor

Desktop

Windows version

No response

Additional context

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Alexander-Kamenchukcommented, Nov 2, 2021

Hi, @chigy Thanks for paying attention to this problem. This is a problem of creating a design concept, it seems to me that it does not require specific examples. It’s impossible to think of smooth and stable color changes using the AccentLight and AccentDark varieties. Varieties in Win11 are very sharp. In Windows 11, an accent level of “3” radically changes the source color with a “Hue” shift, in Windows 10 this is not the case. image

In our application, we had to abandon their use for these reasons. We only use ListAccent brushes which are stable on Windows10 and on Windows11. But, I would like to make full use of all the possibilities of the accents palette.

0reactions
github-actions[bot]commented, Jul 29, 2023

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change Accent Color in Windows 11 Tutorial
You can personalize the color or accent color for window title bars and borders, the Start button, or the taskbar in Windows 11....
Read more >
Change colors in Windows
To manually select an accent color, select one under Recent colors or Windows colors, or select View colors (next to Custom colors) for...
Read more >
How to Enable Different Accent Colors in Windows 11 Theme
With this free app you can Enable Different Accent Colors in Windows 11, specifically for start, taskbar, UI elements.
Read more >
Accent Color Synchronizer for Windows 11/10
Accent Color Synchronizer is a great tool that lets you sync the accent color with the color used in desktop applications for different...
Read more >
How to customize accent colors in Windows 11 - YouTube
Professor Robert McMillen shows you how to customize accent colors in Windows 11. Accent colors add to the overall experience and can match ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found