Skip to content

Mac example with custom icons #42

@oren0e

Description

@oren0e

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions