Skip to content

Update accent color always - #5

Merged
0x5bfa merged 3 commits into
0x5bfa:mainfrom
Jack251970:UpdateBackdropManager
May 16, 2026
Merged

Update accent color always#5
0x5bfa merged 3 commits into
0x5bfa:mainfrom
Jack251970:UpdateBackdropManager

Conversation

@Jack251970

Copy link
Copy Markdown
Contributor

This pull request refactors the logic for updating the tray icon flyout's backdrop to improve how it responds to changes in taskbar color settings. The update simplifies state tracking and ensures the backdrop updates more reliably when system appearance settings change.

Backdrop update logic improvements:

  • Removed the _wasTaskbarColorPrevalenceLastTimeChecked field and its associated state tracking, simplifying the code and reducing unnecessary checks.
  • Changed the logic in UpdateBackdropManager so that the backdrop is now always updated when the taskbar's color prevalence is enabled, ensuring accent color changes are reflected immediately. [1] [2]
  • Updated the backdrop controller selection logic to only track changes to the taskbar light/dark state, and to handle forced updates (coerce) and color prevalence cases more clearly. [1] [2]

Copilot AI review requested due to automatic review settings February 22, 2026 08:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors the WASDK tray icon flyout backdrop update logic so the backdrop is refreshed more reliably with Windows taskbar appearance settings—especially when taskbar color prevalence is enabled (accent color can change).

Changes:

  • Removes color-prevalence state tracking and simplifies the “should update” decision.
  • Forces backdrop controller recreation when taskbar color prevalence is enabled (to reflect possible accent color changes).
  • Restructures controller selection to primarily track taskbar light/dark changes, with an explicit coerce path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/TrayIconFlyout.Shared/TrayIconFlyout.cs Outdated
Comment thread src/TrayIconFlyout.Shared/TrayIconFlyout.cs Outdated
@0x5bfa

0x5bfa commented May 15, 2026

Copy link
Copy Markdown
Owner

Can you resolve the merge conflicts?

Re-indented the code block that selects the appropriate ISystemBackdropControllerWithTargets based on taskbar appearance and user settings. No logic changes were made; this update improves code structure and consistency.
@Jack251970

Copy link
Copy Markdown
Contributor Author

Can you resolve the merge conflicts?

Hi, I resolved the changes already. But the building issues in CI are quite strange. Could you please do me a favor?

@0x5bfa
0x5bfa merged commit 9981236 into 0x5bfa:main May 16, 2026
4 of 8 checks passed
@0x5bfa

0x5bfa commented May 16, 2026

Copy link
Copy Markdown
Owner

Thank you!

@0x5bfa 0x5bfa changed the title Force update backdrop when color prevalence is on, as the accent color might change Update accent color always May 16, 2026
@0x5bfa

0x5bfa commented May 16, 2026

Copy link
Copy Markdown
Owner

But the building issues in CI are quite strange. Could you please do me a favor?

Looks like MSIX packager is acting up. Looking into.

@0x5bfa

0x5bfa commented May 16, 2026

Copy link
Copy Markdown
Owner

I meant this one, sorry. I'll resolve conflicts on my end, pleae open a new PR for this branch.

@0x5bfa

0x5bfa commented May 16, 2026

Copy link
Copy Markdown
Owner

Looks like MSIX packager is acting up. Looking into.

I've fixed this issue in the main branch.

@0x5bfa 0x5bfa mentioned this pull request May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants