GramEditor/gram
38
989
Fork
You've already forked gram
87

App icon incorrect align (mac) #49

Closed
opened 2026年03月06日 15:49:57 +01:00 by fzzr · 24 comments
Contributor
Copy link
Right gap is bigger. ![Screenshot 2026年03月06日 at 18.45.31](/attachments/de9888c9-eeed-4a44-bb2f-30ed613aa6bc)
Owner
Copy link

Looks like the whole icon is offset vertically as well, yes... In Tahoe it looks correct, but I guess I messed up the format after all.

Looks like the whole icon is offset vertically as well, yes... In Tahoe it looks correct, but I guess I messed up the format after all.

Thinking of this, though - do you have a vector version of the icon? I pressume that would be handy for various icons in future (and website as well). If not, I can prepare vectorized version if needed as a contribution to this wonderful initiative ;)

Thinking of this, though - do you have a vector version of the icon? I pressume that would be handy for various icons in future (and website as well). If not, I can prepare vectorized version if needed as a contribution to this wonderful initiative ;)
Owner
Copy link

@jakubzet I do have a vector version. Well, every toad is slightly different. :D Would love more versions though!

This is the one I have:

GramEditor/website@0113acde9e/static/logo_light.svg

@jakubzet I do have a vector version. Well, every toad is slightly different. :D Would love more versions though! This is the one I have: https://codeberg.org/GramEditor/website/src/commit/0113acde9e2823f2e07e3b50a0c396581f960b68/static/logo_light.svg
Owner
Copy link

Well, I've tried to fix this but I think it's still off. I'm trying to follow the official Apple icon template, but yeah, not sure what I am doing wrong... Anyway, I'm going to close this issue and hope that a UI designer shows up and creates nice icons for every platform at some point :)

Well, I've tried to fix this but I think it's still off. I'm trying to follow the official Apple icon template, but yeah, not sure what I am doing wrong... Anyway, I'm going to close this issue and hope that a UI designer shows up and creates nice icons for every platform at some point :)
Contributor
Copy link

nice icons for every platform

What requirements do you have for this? :)

> nice icons for every platform What requirements do you have for this? :)
Contributor
Copy link

I created a macOS icon using the new .icon format from the SVG for now, but as far as I understand, the current icons are generated using cargo-bundle from PNG sources? And that doesn't seem to support the format.

Default Dark Mono
image image image

I'd generally be interested in creating proper icons also for Linux, whatever the requirements are :)

I created a macOS icon using the new .icon format from the SVG for now, but as far as I understand, the current icons are generated using cargo-bundle from PNG sources? And that [doesn't seem to support](https://github.com/burtonageo/cargo-bundle/issues/229) the format. | Default | Dark | Mono | | ------- | ---- | ---- | | ![image](/attachments/7b0f219b-0bd3-4ec8-8af8-17e96f315901) | ![image](/attachments/e5a2d89d-3b20-47d4-af3c-171ad6dbf0d2) | ![image](/attachments/967e9671-196b-4511-b52b-f115adf99eff) | I'd generally be interested in creating proper icons also for Linux, whatever the requirements are :)
Owner
Copy link

What requirements do you have for this? :)

Really not much! I pretty much randomly decided on the color scheme and the toad design, but I would be open to changes to either from someone with good aesthetic sensibilities. :)

> What requirements do you have for this? :) Really not much! I pretty much randomly decided on the color scheme and the toad design, but I would be open to changes to either from someone with good aesthetic sensibilities. :)
Owner
Copy link

I created a macOS icon using the new .icon format from the SVG for now, but as far as I understand, the current icons are generated using cargo-bundle from PNG sources? And that doesn't seem to support the format.

Yeah that is the limitation as it stands now, but maybe that can be changed. Not sure how that works exactly.

> I created a macOS icon using the new .icon format from the SVG for now, but as far as I understand, the current icons are generated using cargo-bundle from PNG sources? And that doesn't seem to support the format. Yeah that is the limitation as it stands now, but maybe that can be changed. Not sure how that works exactly.
Owner
Copy link

I'd generally be interested in creating proper icons also for Linux, whatever the requirements are :)

Nice work! Not sure I like the emboss effect especially on the dark variant but using the SVG would be a nice improvement to consistency

> I'd generally be interested in creating proper icons also for Linux, whatever the requirements are :) Nice work! Not sure I like the emboss effect especially on the dark variant but using the SVG would be a nice improvement to consistency
Owner
Copy link

I created a macOS icon using the new .icon format from the SVG for now, but as far as I understand, the current icons are generated using cargo-bundle from PNG sources? And that doesn't seem to support the format.

cargo-bundle should be able to take a .icns file so should be able to get this to work!

> I created a macOS icon using the new .icon format from the SVG for now, but as far as I understand, the current icons are generated using cargo-bundle from PNG sources? And that doesn't seem to support the format. cargo-bundle should be able to take a .icns file so should be able to get this to work!
Owner
Copy link

@krig wrote in #49 (comment):

I'd generally be interested in creating proper icons also for Linux, whatever the requirements are :)

Nice work! Not sure I like the emboss effect especially on the dark variant but using the SVG would be a nice improvement to consistency

OK, now I realized that the emboss effect is thanks to Liquid Glass so I guess this is to be expected :)

@krig wrote in https://codeberg.org/GramEditor/gram/issues/49#issuecomment-11781348: > > I'd generally be interested in creating proper icons also for Linux, whatever the requirements are :) > > Nice work! Not sure I like the emboss effect especially on the dark variant but using the SVG would be a nice improvement to consistency OK, now I realized that the emboss effect is thanks to Liquid Glass so I guess this is to be expected :)
Contributor
Copy link

OK, now I realized that the emboss effect is thanks to Liquid Glass so I guess this is to be expected :)

It is, I do see what you mean though, it could be turned off but not adjusted or only for dark and it would look a bit out of place for the mono variant otherwise.

cargo-bundle should be able to take a .icns file so should be able to get this to work!

Right, .icns is the old format, just a couple of images at different scales. .icon is the new one, it includes SVG and JSON sources from which the icon is generated. So I wonder if there is some way to add a custom Xcode source as that would be needed for now.

> OK, now I realized that the emboss effect is thanks to Liquid Glass so I guess this is to be expected :) It is, I do see what you mean though, it could be turned off but not adjusted or only for dark and it would look a bit out of place for the mono variant otherwise. > cargo-bundle should be able to take a .icns file so should be able to get this to work! Right, .icns is the old format, just a couple of images at different scales. .icon is the new one, it includes SVG and JSON sources from which the icon is generated. So I wonder if there is some way to add a custom Xcode source as that would be needed for now.
Contributor
Copy link

Oh nevermind, it can be turned off for dark only! I think I might do that.

Oh nevermind, it can be turned off for dark only! I think I might do that.
Contributor
Copy link

I wonder if simply adding the directory named AppIcon.icon in resources would be enough. From the Xcode user's perspective, having this source is all you need but I'm guessing there is more going on behind the scenes.

I wonder if simply adding the directory named `AppIcon.icon` in `resources` would be enough. From the Xcode user's perspective, having this source is all you need but I'm guessing there is more going on behind the scenes.
Owner
Copy link

Right, .icns is the old format, just a couple of images at different scales. .icon is the new one, it includes SVG and JSON sources from which the icon is generated. So I wonder if there is some way to add a custom Xcode source as that would be needed for now.

Aah, I see. I can have a look at it this evening, maybe we can use xcode directly and not go through cargo-bundle.

> Right, .icns is the old format, just a couple of images at different scales. .icon is the new one, it includes SVG and JSON sources from which the icon is generated. So I wonder if there is some way to add a custom Xcode source as that would be needed for now. Aah, I see. I can have a look at it this evening, maybe we can use xcode directly and not go through cargo-bundle.
Contributor
Copy link

I was going to try myself as well, but after it installed 30GB of stuff and was building for ~30m using 7GB of swap, I gave up. Maybe not on my machine. I'll leave it to you :)

Here is the icon without the bevel for the dark variant.

I was going to try myself as well, but after it installed 30GB of *stuff* and was building for ~30m using 7GB of swap, I gave up. Maybe not on my machine. I'll leave it to you :) Here is the icon without the bevel for the dark variant.
Owner
Copy link

@kramo Icons merged now, thank you! I am including both the AppIcon.icon file and the old style icns file in the application bundle, but replaced the PNGs with ones exported from Icon Composer from your icon bundle. Not sure what the right approach is there, I do want to make sure it works on pre-Tahoe as well.

@kramo Icons merged now, thank you! I am including both the `AppIcon.icon` file and the old style `icns` file in the application bundle, but replaced the PNGs with ones exported from Icon Composer from your icon bundle. Not sure what the right approach is there, I do want to make sure it works on pre-Tahoe as well.
Contributor
Copy link

Thank you :)

Yes, this is the approach I've seen other apps take as well, including both. Although I think if you set the minimum version to <26.0, it may automatically generate an .icns for you, but I'm not 100% sure.

Thank you :) Yes, this is the approach I've seen other apps take as well, including both. Although I think if you set the minimum version to <26.0, it may automatically generate an .icns for you, but I'm not 100% sure.
Contributor
Copy link

Right, but you just copy over the .icon after the fact? Does that actually work? It doesn't seem to, from what I'm looking at.

Right, but you just copy over the .icon after the fact? Does that actually work? It doesn't seem to, from what I'm looking at.
Owner
Copy link

Right, but you just copy over the .icon after the fact? Does that actually work? It doesn't seem to, from what I'm looking at.

Probably need to update a plist in the application bundle, will dig around and see..

My guess would also be that cargo-bundle would have to be the one to generate the .icns file, but I wanted to do it manually since I thought it was nice that I could use different variants for the stable and dev builds..

> Right, but you just copy over the .icon after the fact? Does that actually work? It doesn't seem to, from what I'm looking at. Probably need to update a plist in the application bundle, will dig around and see.. My guess would also be that `cargo-bundle` would have to be the one to generate the `.icns` file, but I wanted to do it manually since I thought it was nice that I could use different variants for the stable and dev builds..
Owner
Copy link

@kramo I figured it out and I will need to repack the bundle or fix this in cargo-bundle. Should be an easy fix at least.

@kramo I figured it out and I will need to repack the bundle or fix this in `cargo-bundle`. Should be an easy fix at least.
Contributor
Copy link

I’m pretty sure that the .icon file is only a source used to generate the actual assets, so it has to be added at build time and won’t work afterwards. I don’t think the location and format of the generated icons is even API. They are just bundled in some asset file.

Before building your app, add the Icon Composer file to your Xcode project to include it in your app’s bundle. The system automatically renders your app icon for the different platforms, appearances, and sizes from your single Icon Composer file.

and for older versions

If you add an Icon Composer file to your Xcode project, it replaces any existing icon asset catalog that you previously used to represent your app icon. Xcode automatically generates a similar-looking version of the Liquid Glass icon for previous releases. If you want your existing icon to appear in previous releases, continue to use asset catalogs to represent your app icon.

https://developer.apple.com/documentation/Xcode/creating-your-app-icon-using-icon-composer

I’m pretty sure that the .icon file is only a source used to generate the actual assets, so it has to be added at build time and won’t work afterwards. I don’t think the location and format of the generated icons is even API. They are just bundled in some asset file. > Before building your app, add the Icon Composer file to your Xcode project to include it in your app’s bundle. The system automatically renders your app icon for the different platforms, appearances, and sizes from your single Icon Composer file. and for older versions > If you add an Icon Composer file to your Xcode project, it replaces any existing icon asset catalog that you previously used to represent your app icon. Xcode automatically generates a similar-looking version of the Liquid Glass icon for previous releases. If you want your existing icon to appear in previous releases, continue to use asset catalogs to represent your app icon. https://developer.apple.com/documentation/Xcode/creating-your-app-icon-using-icon-composer
Contributor
Copy link

Nevermind, okay :)

Nevermind, okay :)
Contributor
Copy link

Oh, there is tooling for building asset catalogs manually. Neat :)

Oh, there is tooling for building asset catalogs manually. Neat :)
Sign in to join this conversation.
No Branch/Tag specified
main
test/wgpu-on-mac
test-ci/failing-test-mac
test/failing-test-mac
test/build-on-22-04
test/wgpu-present-mode-mailbox
v2.1
test/altgr-fix-again
test/2.0.0-rc1
test/linux-build
test/objc2
v1.2.1
3.0.1
3.0.0
2.2.0
2.1.2
2.1.1
2.1.0
2.0.0
1.2.1
1.2.0
1.1.0
1.0.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
GramEditor/gram#49
Reference in a new issue
GramEditor/gram
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?