Skip to content

Use Config.ico's largest frame for the header logo; drop Logo.png - #2

Merged
arithex merged 1 commit into
mainfrom
claude/affectionate-goodall-gn2lqa
Oct 29, 2026
Merged

arithex merged 1 commit into
mainfrom
claude/affectionate-goodall-gn2lqa

Conversation

@arithex

@arithex arithex commented Oct 29, 2026

Copy link
Copy Markdown
Owner

The header logo now comes from Config.ico itself, so the icon is the only source for the app's artwork.

An <Image> pointed straight at a .ico shows 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 updated Config.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 logo Image has a name (LogoImage) and no Source.
  • MainWindow.xaml.cs: new LoadLargestIconFrame(), called from the constructor.
  • Logo.png is 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

  • The C# compiles against the .NET 4.8 reference assemblies, using stand-ins for the code the XAML generates.
  • Windows CI build.
  • Check on Windows that the header logo is sharp.

Generated by Claude Code

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
@arithex
arithex merged commit 54b177e into main Oct 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants