Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

MenuItemOptions Icon not sizing properly #346

Open
packet-sent opened this issue Dec 26, 2021 · 2 comments
Open

MenuItemOptions Icon not sizing properly #346

packet-sent opened this issue Dec 26, 2021 · 2 comments

Comments

@packet-sent
Copy link

Hi,
I got the following issue with the sizing of the MenuItemOptions Icon:
image
image

I have tried with different sized icons and different formats (png/ico) and couldn't figure out how to fix it, also tried looking at the documentation (https://pkg.go.dev/github.com/asticode/[email protected]#MenuItemOptions) but couldn't see anything pointing me in the right direction, if anybody could help I would appreciate it.

@packet-sent packet-sent changed the title MenuItemOptions Icon Sizing MenuItemOptions Icon not sizing properly Dec 26, 2021
@asticode
Copy link
Owner

Have you tried using a .png or event better a .svg instead of a .ico ?

@packet-sent
Copy link
Author

packet-sent commented Dec 26, 2021

So with different sizes of .ico files, it didn't respect the sizes it had (tried many from 8x8 to 128x128) and for the .svg file it gave me the following error (building gave 0 errors) and the menu wasn't present in the tray.
image

However with .png it worked fine with a smaller resolution of 16x16.
image

I think something could be done about this as for the tray icon I just used a .ico file and it worked perfectly to size, as I am pretty sure nobody is intentionally going for something that large in the MenuItem, or maybe we can customize the size.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants