You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.
On windows, we can set an icon via a resource name. On linux, we can use set_icon_from_stock or themes. Not sure what the situation on mac is. Is there a way to unify all of these under the same generic function?
The text was updated successfully, but these errors were encountered:
I think we can do something similar to what I've done when I worked on set_icon_from_buffer() for Windows. Since resource topic is something that is not unified across platforms, we can use include_bytes!(), this gives us some sort of "crossplatform resources" I guess. In this case the only thing we have to support is a function which accepts the icon as a slice (perhaps &'static [u8]). I implemented the similar function on Windows already (you've merged it recently), yesterday I implemented the same thing for Mac in my fork.
Ok. I'll see if there's something available in gtk that would accept that kind of argument too. You familiar with anything @jonhoo? The Go systray thing I was cribbing off of takes a blob, saves to it /tmp, and opens that file, which seems hacky.
On windows, we can set an icon via a resource name. On linux, we can use set_icon_from_stock or themes. Not sure what the situation on mac is. Is there a way to unify all of these under the same generic function?
The text was updated successfully, but these errors were encountered: