This super simple example does work on my mac:
use tray_item::{IconSource, TrayItem};
fn main() {
let mut tray = TrayItem::new("Tray Example", IconSource::Resource("")).unwrap();
let mut inner = tray.inner_mut();
inner.display();
}
But I want to see an example where I can display a custom png icon and then based on some event or condition - change that icon to something else. It's not clear how to do this in this case.
This super simple example does work on my mac:
But I want to see an example where I can display a custom png icon and then based on some event or condition - change that icon to something else. It's not clear how to do this in this case.