Skip to content
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

use set_icon_template from buffer #60

Open
iewnfod opened this issue Jun 26, 2024 · 0 comments
Open

use set_icon_template from buffer #60

iewnfod opened this issue Jun 26, 2024 · 0 comments

Comments

@iewnfod
Copy link

iewnfod commented Jun 26, 2024

  • macOS only
  • tray-item version: 0.10.0

I can use IconSource::Data { height: 16, width: 16, data: ICON.to_vec() } to set a icon where ICON is from include_bytes macro. When I want to set my tray icon as a template, set_icon_template only allow &str.
I tried use an absolute image path or IconSource::Data::as_str. Both are not working.

@iewnfod iewnfod changed the title How to use set_icon_template from buffer use set_icon_template from buffer Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant