Skip to content

Add multi-size Windows application icon (fixes #149)#962

Open
IcanBENCHurCAT wants to merge 1 commit into
C7-Game:Developmentfrom
IcanBENCHurCAT:fix/windows-app-icon
Open

Add multi-size Windows application icon (fixes #149)#962
IcanBENCHurCAT wants to merge 1 commit into
C7-Game:Developmentfrom
IcanBENCHurCAT:fix/windows-app-icon

Conversation

@IcanBENCHurCAT

@IcanBENCHurCAT IcanBENCHurCAT commented Jul 14, 2026

Copy link
Copy Markdown

Summary

Closes #149 — Set Windows application icon.

Changes

New files

  • C7/icon.ico — Multi-resolution ICO file with all required sizes (16x16, 32x32, 48x48, 64x64, 128x128, 256x256) generated from the existing 128x128 icon.png using ImageMagick auto-resize

Modified files

  • C7/project.godot — Added config/windows_native_icon="res://icon.ico" for Windows taskbar icon support (config/icon remains res://icon.png for non-Windows platforms)
  • C7/export_presets.cfg — Updated Windows Desktop export preset application/icon to reference icon.ico

Technical details

Per the Godot documentation, Windows ICO files must contain all sizes (16, 32, 48, 64, 128, 256) to fully replace the default Godot icon.

This change ensures:

  1. File icon (Explorer) — The exported .exe shows the C7 icon in Windows File Explorer, not the default Godot icon
  2. Taskbar icon — The windows_native_icon project setting ensures proper taskbar icon rendering
  3. Cross-DPI compatibility — Multi-size ICO handles high-DPI displays correctly
  4. Cross-platform — config/icon remains as icon.png for non-Windows platforms

Testing

Export to Windows using Godot 4.4+ editor. The resulting .exe should display the C7 icon both in the taskbar and in Windows File Explorer.

- Create a proper multi-resolution ICO file with all required sizes
  (16x16, 32x32, 48x48, 64x64, 128x128, 256x256) from the existing
  128x128 icon.png
- Update project.godot to use icon.ico as config/icon and add
  windows_native_icon for taskbar icon support
- Update Windows export preset to reference icon.ico for proper
  Explorer file icon display

Fixes C7-Game#149
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.

Set Application Icon for Windows

1 participant