-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
Generate build status-dependent icons for the editor #98622
base: master
Are you sure you want to change the base?
Conversation
The script for generating PNGs is pretty much all that can be done, Linux icon is not part of the executable or official distribution, so it's up to distro specific package maintainers how to use it.
Not sure if it's used for anything (definitely not used in the official build pipeline). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's also embedded PNG icon which is used for window title / taskbar / task switcher:
Lines 35 to 40 in a308047
env_main.Depends("#main/app_icon.gen.h", "#main/app_icon.png") | |
env_main.CommandNoCache( | |
"#main/app_icon.gen.h", | |
"#main/app_icon.png", | |
env.Run(main_builders.make_app_icon), | |
) |
f226712
to
ccdc6fc
Compare
ccdc6fc
to
ba532a1
Compare
That should be easily doable, but I need to know what kind of PNG sizes are needed. |
No sure if there's a standard set of sizes. The following seems to be used |
ba532a1
to
5844b2d
Compare
5844b2d
to
9760f58
Compare
I've added a bunch of linuxbsd icons. Also generates the SVG variant. The problem is, generated icons don't pass through svgo, but since the pre-commit hook generates the optimized variant, and the script doesn't need to run that often, perhaps that's acceptable? If not then there's a problem - I see no better SVG libary than cairo and I'm not quite sure if text-based svg editing won't trigger the svgo anyway. |
What's the status of this PR? I know it's probably of very low priority, but perhaps there are some concerns that I could investigate in the meantime. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
macOS and Windows icons look good to me.
9760f58
to
8502d5c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Android section looks good.
@tehKaiN Can you provide Android icon_monochrome for different sizes too? |
8502d5c
to
de2a4a5
Compare
I didn't know that they are required/nice to have since the original icon set didn't had those. Fixed! |
I had suggested using the SVG as a base image, resizing it to your desired dimensions, and then exporting it as a PNG file. Then you can put dev/beta/RC label on png file. |
A friendly reminder that another month passed by. I know it's super low priority issue, but I wonder - is there some kind of review queue where I could check how things progress? Or should I just wait for the reviews, or perhaps keep pinging here and there from time to time? |
54412fe
to
565d2cc
Compare
Updated the PR for post-4.4 changes. One thing that's curious for me is that 4.4 changed the icon_foreground and icon_monochrome proportions in mdpi: previously, and in my PR, it was 66px square icon in 108px transparent square background as per Android guidelines, but now the icon is something around 48px square. It would be nice to have a second opinion on how it should really be. |
…ons of the editor
@tehKaiN icon_foreground haven't been updated for last 6 years. |
Sorry, it was late yesterday. Anyway, there is discrepancy between proportions of those icons between current version and my version, and I'm not sure whether I should strictly follow what's in the repo currently, or keep it as I've changed it since android docs seem to confirm that latter is better. I'm not an android developer though, so I might got that wrong. |
Closes godotengine/godot-proposals#541
Also auto-generates the icons for console executables under Windows. They are not pixel-exact to the previous ones, since they're composited dynamically, but they should be close enough.
Sample preview using some kind of web-based .ico previewer - might be a bit distorted.
Caveats:
Also it made a bit of make_icons.sh obsolete, so perhaps it could supersede it further? I don't know how it's called though - make_icons.py is intended to generate files which are to be commited, whereas it looks like make_icons.sh is used for packaging?