-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve MacOS default image #2791
Comments
Setting pygame to use the 128 x 128 |
The icon appears in a complete pygame program: it needs a screen and an event queue to be handled. Just making sure you’ve got that consistently— Are you changing the c code right now, or trying to call display.set_icon with the tiff? |
Yeah I tested running a full program with event queue etc. I was changing the c code. Using |
If you sent me a branch or a patch or something for the C code I could test locally. But this seems like more of a human error thing, since it uses the same code path as set_icon, just internally. |
I just saw this issue while searching for something else, and I thought why don't pygame uses a standard squircle shape icon. It's standard since macOS 11 and nearly every other app uses it. I think it looks much better. So I simply put the .svg file from this repository onto the standard icon shape provided by apple, and tried two different background Colors: I think the white one looks better, so if you want to use this for pygame I exported it in a few formats (png, svg, tiff, icns): |
You answered your own question there 😄 Jokes aside these are quite cool. I'm down to use em. Do you know what pixel size is conventional? 1024x1024 looks great, but it will never use that level of detail on the dock. |
I think 1024x1024 is standard for icons and all programs and websites to create an .icns file scale the image up to 1024 but I created an .icns manually with a max resolution of 256x256 which should be enough and uses 230KB of memory, so not very much: |
Man, this looks so much nicer! I do think that this is an outdated snake head design though. It's slightly squarer and has a lighter yellow color than the newer design. Also it seems very aliased for what it is... did you scale it down directly from the 1024x1024 one? @Mega-JC recently updated some of our logos with higher definition versions, the best versions are all sitting in If you're nice enough to whip up a 256x256 icns and tiff file, I think it will be pretty easy for me to add as the default icon on macOS. |
You're right the version in the docs is newer and looks better, so here it is with the new one: Oh and yes, the edges looked a bit aliased, now it is better. |
Currently, on MacOS, the default image isn't exactly pretty on the eyes
I did some investigating, and we have explicit code to put in a much higher resolution image, but it is overridden by the default call to
SDL_SetWindowIcon
.On Windows, that puts the image in the top left corner of the window. A tiny space, where
pygame_icon.bmp
(32x32) is appropriate.However, on Mac, the icon goes to the dock at the bottom of the screen, which has more screen real estate. So it should get
pygame_icon.tiff
(128x128).The pygame code actually tries to give out
pygame_icon.tiff
on Mac! base.c calls VideoAutoInit in macosx.py, which calls _NSBundleApplication to set the ApplicationIconImage with the bytes ofpygame_icon.tiff
. But then this is quickly overridden by theSDL_SetWindowIcon
indisplay.set_mode()
, I believe.Tasks
display.set_icon
)The text was updated successfully, but these errors were encountered: