cxong / cdogs-sdl

Classic overhead run-and-gun game
https://cxong.github.io/cdogs-sdl/
GNU General Public License v2.0
870 stars 115 forks source link

Higher resolution program icon #522

Open Mailaender opened 6 years ago

Mailaender commented 6 years ago

https://github.com/cxong/cdogs-sdl/tree/master/build/linux has 48px max which isn't big enough and therefore won't get displayed on modern Linux menus.

cxong commented 6 years ago

What resolutions are required?

Mailaender commented 6 years ago

64x64, 128x128 and 256x256 seem to be standard nowadays. If you have a source file, a scalable one ready a .svg would solve the problem once and for all.

hashar commented 6 years ago

As of current master ( ea0651ca5b17538e4bff8694edbc8b43259cee63 ):

16x16: 16x16 22x22: 22x22 32x32: 32x32 48x48: 48x48 128x128: 128x128

Note how icons 16, 22, 32 are different from the 48 and 128 ones. It seems the 128 pixel ones has just been scaled up from the 48 px one.

There are other icons as well: build/macosx/cdogs-icon.icns build/windows/cdogs-icon.ico (16, 22, 32, 48)

build/gcw-zero/cdogs-sdl.png 32px gcw-zero 32px.

The Gnome icons (/usr/share/gnome) seems to use 8, 16, 22, 24, 32, 48, 128, 256, 512. They also come with a scalable flavor which is SVG.

cxong commented 6 years ago

I think it'll be good to organise the four base icon types, and create scripts that generate icon sets for each platform. This will make it easier to edit the icons in the future, and to add more icon sizes as needed.