Repository navigation
Use Config.ico's largest frame for the header logo; drop Logo.png - #2
Merged
Merged
Conversation
An Image pointed directly at the .ico uses its first frame (a small one), so decode the icon and pick its largest frame (the 256px PNG). This keeps Config.ico as the single source for the app's artwork. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KaEsnLMDyw72GZ8a6ZxAGq
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.
The header logo now comes from
Config.icoitself, so the icon is the only source for the app's artwork.An
<Image>pointed straight at a.icoshows the icon's first frame, which is usually one of the small ones. The window now decodes the icon and shows its largest frame instead: the 256×256 PNG in the updatedConfig.ico. If several frames are the same size, the one with the most colour depth wins. If decoding fails, the header shows no logo and the app still starts.Changes:
MainWindow.xaml: the logoImagehas a name (LogoImage) and noSource.MainWindow.xaml.cs: newLoadLargestIconFrame(), called from the constructor.Logo.pngis deleted, along with its<Resource>entry in the csproj.The window and taskbar icon (
Icon="Config.ico") and the exe icon (ApplicationIcon) are unchanged.Testing
Generated by Claude Code