Skip to content

fix(gui): the tray icon at the taskbar's own size - #77

Merged
Rovey merged 1 commit into
mainfrom
fix/tray-icon-small
Nov 12, 2026
Merged

Rovey merged 1 commit into
mainfrom
fix/tray-icon-small

Conversation

@Rovey

@Rovey Rovey commented Nov 12, 2026

Copy link
Copy Markdown
Owner

What

The owner saw that the tray icon did not look right. The tray loaded the icon with LoadIcon, which gives the large icon (32 px at 100 %, 48 px at 150 %). The taskbar scaled it down to its small size, and the drawing made for the large size (with the line under the gauge) looked off there.

The tray now loads the icon at SM_CXSMICON, so the taskbar gets the 16, 20 or 24 px image that app.ico already has for it. The handle is kept and only reloaded when that size changes; the taskbar keeps its own copy.

Checked

🤖 Generated with Claude Code

LoadIcon gives the large icon (32 px at 100 %, 48 px at 150 %), which the
taskbar scaled down to its small size: the drawing made for the large size
looked off in the tray. The tray now loads the icon at SM_CXSMICON, so the
taskbar gets the 16, 20 or 24 px image of app.ico.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Rovey
Rovey merged commit 79debaf into main Nov 12, 2026
2 checks passed
@Rovey
Rovey deleted the fix/tray-icon-small branch November 12, 2026 22:35
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.

1 participant