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.

How does WinUI create the color pallette(?) for a given (accent) color and color mode (dark/light)?

See original GitHub issue

This noise PNG doesn’t look like the noise texture actually used in acrylic. It has an alpha of value (possibly) 1, which means it is not the noise texture PNG used in the real AcrylicBrush.

Please update the noise texture to the correct PNG to remove any (potential) errors/threats, as it could be misleading.
Or at least make a README.md file that gives the correct alpha value for that PNG to be the same as the noise in acrylic.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:37 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
SFM61319commented, Oct 5, 2020

@SFM61319 Are there any other questions regarding the Acrylic brush and its blur? Or can this issue be closed?

Oh yea I’m so sorry I forgot I created this issue. Gonna close this!

1reaction
chingucodingcommented, May 16, 2020

@SFM61319 The thing with XAML rendering is that there is no such unit like PX in CSS. All measurements are done in “Pixels” which then are converted into DPI pixels/PPI which are aware of factors such as display scaling and screen size. So on my device 40 “pixel” would be the same size as on a device with a smaller or larger screen, because those units get scaled to ensure that text is readable etc.

One XAML pixel does not have to correspond to one physical pixel (contrary to what CSS does).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Color in Windows apps
Accent color palette​​ An accent color algorithm in the Windows shell generates light and dark shades of the accent color. These shades can...
Read more >
Support Dark and Light themes in Win32 apps
Windows uses Light mode by default, but users can choose Dark mode, which changes much of the UI to a dark color.
Read more >
Palettes | WPF Controls
The palette allows you to get the following Windows theme settings, listen to their changes, and apply them to your application: Accent color;...
Read more >
Color system – Material Design 3
Tones are assigned to color roles; Roles in a scheme; Accent colors; Surface colors ... Apps receive light and dark tones through a...
Read more >
Using a Dynamic System Accent Color in UWP
This article describes an algorithm that allows individual pages in a XAML UWP app to override the system accent color.
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