Skip to content

Force update backdrop when color prevalence is on, as the accent color might change#5

Open
Jack251970 wants to merge 1 commit into0x5bfa:mainfrom
Jack251970:UpdateBackdropManager
Open

Force update backdrop when color prevalence is on, as the accent color might change#5
Jack251970 wants to merge 1 commit into0x5bfa:mainfrom
Jack251970:UpdateBackdropManager

Conversation

@Jack251970
Copy link
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
Copy link

Copilot AI left a comment

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.

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