Add update-available badge to system tray icon#47030
Open
Conversation
When an update is available (readyToDownload or readyToInstall), the tray icon switches to a badged variant with an orange dot. Works for both default mode (color icon.ico) and theme-adaptive mode (light/dark variants). Changes: - Add 3 badged icon variants (placeholder assets, to be replaced with designs) - Extend get_icon() to select badged variant based on update_available state - Add set_tray_icon_update_available() for runtime icon switching - Hook into UpdateUtils.cpp state transitions via dispatch_run_on_main_ui_thread - Check UpdateState at startup to show badge immediately if update pending - Add 'Update available' context menu item at top of tray menu when active Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
cb870e8 to
3550af5
Compare
…click - Add APPICON_UPDATE icon resource to runner.base.rc (iconUpdate.ico) - Add CopyFileToFolders entries for all update icon variants (iconUpdate.ico, PowerToysDarkUpdate.ico, PowerToysWhiteUpdate.ico) to runner.vcxproj so they are copied to the build output - Add update icon files to installer Core.wxs - Change 'Update available' tray menu item to navigate to General page (Overview) instead of opening Settings to the default Dashboard Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Change update InfoBar severity from Success/Informational to Warning in GeneralPage, LaunchPage, and CheckUpdateControl - Update gradient colors and icon glyph for update badge on Dashboard - Add AccentButtonStyle to Install Now button - Fix casing: 'Update Available' -> 'Update available' - Add UpdateAvailableInfoBar.Title resource string Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When an update is available (readyToDownload or readyToInstall), the tray icon switches to a badged variant with an orange dot. Works for both default mode (color icon.ico) and theme-adaptive mode (light/dark variants).
Changes
Tray icon update badge
Fix: update icons not deployed (bug fix)
UX improvements
Screenshots
Before:

After:
How to test
Since local dev builds use version
0.0.1which blocks update checks, you need to temporarily fake an older version:src/Version.props, change<Version>0.0.1</Version>to<Version>0.87.0</Version>src/runner/UpdateUtils.cpp, change both interval constants to1(minute) for faster testing:Verify
Remember to revert Version.props and UpdateUtils.cpp before committing!