Skip to content

Add Windows application icon (icon.ico)#961

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

Add Windows application icon (icon.ico)#961
IcanBENCHurCAT wants to merge 1 commit into
C7-Game:Developmentfrom
IcanBENCHurCAT:icon/windows-app-icon

Conversation

@IcanBENCHurCAT

@IcanBENCHurCAT IcanBENCHurCAT commented Jul 14, 2026

Copy link
Copy Markdown

Closes #149

What was changed

Added C7/icon.ico - a multi-size Windows icon file (256x256, 128x128, 64x64, 48x48, 32x32, 16x16) generated from the existing C7/icon.png.

Why

Per the Godot documentation, Windows applications need an .ico file in the project folder to display the application icon in Windows File Explorer. Before this change, the application icon shown in Explorer was the default Godot placeholder icon, even though the window icon (in the title bar) was already correctly set.

Technical details

  • Source: The existing C7/icon.png (128x128 RGBA PNG) was upscaled to 256x256 and converted to multi-resolution ICO format using Pillow (Python).
  • The .ico file is committed directly - no build step or external tool required.
  • The existing project.godot setting config/icon="res://icon.png" continues to work for the window icon.
  • Godot automatically picks up icon.ico in the project root for Windows file explorer integration.

Files changed

  • C7/icon.ico - new file (multi-size Windows ICO, 350 KB)

- Add icon.ico (256x256 multi-size ICO) to C7/ directory
- This fixes issue C7-Game#149: Windows file explorer now shows the OpenCiv3
  app icon instead of the default Godot icon
- Godot uses icon.ico for the Windows file explorer application icon
- The existing icon.png continues to serve as the window/icon resource

See: https://docs.godotengine.org/en/stable/tutorials/export/
     changing_application_icon_for_windows.html
@stavrosfa

Copy link
Copy Markdown
Contributor

Thanks @IcanBENCHurCAT !

@WildWeazel do you think that perhaps we should move this in the Assets repo?

@WildWeazel

Copy link
Copy Markdown
Member

I think the icon belongs here as it's an integral part of the application. I'd still rather someone draw a better icon though :D
Can anyone confirm it is used correctly on each OS? From #149 it sounds like the .ico should be shown on both the exe file and the taskbar (at least on Windows - I don't think the former is a thing in Linux, and not sure about Mac)

@IcanBENCHurCAT

Copy link
Copy Markdown
Author
Screenshot 2026-07-15 062108 Screenshot 2026-07-15 062135

Windows screenshots

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

3 participants