lepoco / lepoco/wpfui

Incorrect display after switching themes.

Open
#488 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
9.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

After switching theme(use Theme.Apply(ThemeType.*,BackgroundType.*)), the theme color of the window does not change, only after changing the window material (use WindowBackDrop=BackgroundType.*), while the theme function of the page is normal.

The problem appears to have arisen after an update to the system.

To Reproduce

Switch theme and material by Theme.Apply(ThemeType.*,BackgroundType.*);.

Expected behavior

You know.

Screenshots

GIF 2023-1-5 21-44-50

OS version

Version Windows 11 Professional Workstation Edition
Version 22H2
The installation date ‎ 2022-11 - ‎ ‎ 17
Operating system Version 22621.963
Experience Windows Feature Experience Pack 1000.22638.1000.0

.NET version

6.0.2

WPF-UI NuGet version

2.0.3

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the theme switch with Theme.Apply(ThemeType., BackgroundType.) and compare it with changing WindowBackDrop=BackgroundType.* on Windows 11. Verify whether the window color updates while page theming remains normal; done means the window responds correctly without requiring a material change.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.