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
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.
The text was updated successfully, but these errors were encountered:
iewnfod
changed the title
How to use set_icon_template from buffer
use set_icon_template from buffer
Jun 26, 2024
I can use
IconSource::Data { height: 16, width: 16, data: ICON.to_vec() }
to set a icon whereICON
is frominclude_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.The text was updated successfully, but these errors were encountered: