- 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.
I can use
IconSource::Data { height: 16, width: 16, data: ICON.to_vec() }to set a icon whereICONis frominclude_bytesmacro. When I want to set my tray icon as a template,set_icon_templateonly allow&str.I tried use an absolute image path or
IconSource::Data::as_str. Both are not working.