Repository navigation
Write an Xbox Game Bar widget's icons from the Windows target - #1
Merged
Merged
Conversation
A Windows target can set gameBarIcons to a folder; devkit-icons then writes the icon set Game Bar reads from a widget's PublicFolder: icon.targetsize-<size>.png at 16, 20, 24, 32, 44 and 256 px from icon.svg, and icon.light.targetsize-<size>.png from icon-mono.svg drawn dark for Game Bar's light theme. Apps with a Game Bar widget no longer need a generator of their own for it.
RyanEwen
marked this pull request as ready for review
November 23, 2026 04:23
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.
Adds an optional
gameBarIconsfolder to thedevkit-iconsWindows target. When it's set, devkit also writes the icon set Xbox Game Bar reads from a widget's PublicFolder, named as Microsoft's widget icon guide gives them:icon.targetsize-{16,20,24,32,44,256}.pngfromicon.svg, for Game Bar's dark theme;icon.light.targetsize-{16,20,24,32,44,256}.pngfromicon-mono.svgdrawn dark (the same light form as the Windows light-taskbar icons), for its light theme.All of them are transparent, like the rest of the Windows target. A value that isn't a string fails with
targets.windows.gameBarIcons must be a path. Without the option, nothing changes.First user: ChatMixr's Game Bar widget, which today draws these icons with a script of its own. That script is gone from ChatMixr's main branch now that its icon comes from an SVG master.
Checks
npm test: 304 pass, 1 skipped (the host-listener test, which needs a live proxy).npm run format:checkandnpm run lintpass.A minor release (new option, no behaviour change).
AI disclosure: this pull request and the related code were written with the assistance of AI.