Skip to content

Windows: load PNG icons for window/taskbar - #9

Merged
dominicletz merged 1 commit into
masterfrom
windows/png-window-icons
Sep 1, 2026
Merged

Windows: load PNG icons for window/taskbar#9
dominicletz merged 1 commit into
masterfrom
windows/png-window-icons

Conversation

@dominicletz

Copy link
Copy Markdown
Contributor

Summary

  • Blank window/taskbar icons: app uses diode.png but host only LoadImage(IMAGE_ICON).
  • Load PNG/JPEG via GDI+; default class/tray icon from the exe.

Test plan

  • Rebuild and replace installed dDrive.exe
  • Confirm Diode icon in title bar and taskbar

Made with Cursor

Desktop.Window passes diode.png; LoadImage(IMAGE_ICON) only accepts
.ico, so icon.create returned a null HICON and WM_SETICON was a no-op
(blank title bar and taskbar). Decode PNG/JPEG via GDI+ and fall back
to the host exe icon for the window class and default tray.

Co-authored-by: Cursor <cursoragent@cursor.com>
@dominicletz
dominicletz merged commit eb308bb into master Sep 1, 2026
4 checks passed
@dominicletz
dominicletz deleted the windows/png-window-icons branch September 1, 2026 19:34
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