microsoft / WindowsAppSDK

The Windows App SDK empowers all Windows desktop apps with modern Windows UI, APIs, and platform features, including back-compat support, shipped via NuGet.
https://docs.microsoft.com/windows/apps/windows-app-sdk/
MIT License
3.78k stars 319 forks source link

Color error about pop-up layer #3248

Open BlameTwo opened 1 year ago

BlameTwo commented 1 year ago

Describe the bug

In the process of using Flyout, I noticed that when the color of the system changes, the color of Flyout does not change. If the visual effect of the system is light color, so is the visual effect of the app. But when I enter the system settings to select light color or dark color, it is the opposite color.

The picture is just an example.

QQ截图20221215145841 QQ图片20221215145758

Steps to reproduce the bug

  1. Create a new project and write a flyout element.
  2. Enter the system settings to change the system color to the opposite color.
  3. Click the element of the assigned flyout, and a bug appears.
  4. Note: The applied color setting is Default

Expected behavior

The color of flyout should be consistent with the system, but it did not.

Screenshots

No response

NuGet package version

Windows App SDK 1.2.1: 1.2.221116.1

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 22H2 (22621, 2022 Update)

IDE

Visual Studio 2022

Additional context

No response

BlameTwo commented 1 year ago

Now I give him the color displayed after the change by visual color change event, but according to common sense, he should change automatically.