tray-item-rs icon indicating copy to clipboard operation
tray-item-rs copied to clipboard

Multi-platform Tray Indicator

Results 23 tray-item-rs issues
Sort by recently updated
recently updated
newest added

Instead of gtk and libappindicator consider using [ksni](https://github.com/iovxw/ksni) which implements dbus interfaces natively (libappindicator does it via C code anyway). The advantage is much smaller dependency tree and the requirements...

enhancement
help wanted

I rebased @njust branch onto the new changes, and added the feature switching. I had to re-add `Sync` to `pub fn add_menu_item` for ksni `add_menu_item`. I didn't test macos, but...

```rust pub fn set_icon(&mut self, icon: &str) -> Result { unsafe { let icon_name = NSString::alloc(nil).init_str(icon); self.icon = Some(NSImage::initWithContentsOfFile_( NSImage::alloc(nil), icon_name, )); } Ok(()) } ``` I try to modify...

Thanks @olback for this crate! I'm wondering if you think it's possible to update the tray name after it is created. I can try implementing it for macos and linux...

However the lib is on the place ``` Reading package lists... Done Building dependency tree... Done Reading state information... Done libappindicator3-1 is already the newest version (0.4.92-8). ``` OS :5.10.0-11-amd64...

Had an idea of making like a stock ticker tray icon. Obvious price is rapidly changing. Was wondering if we could make a `set_label` API or `update_label` API to update...

Hi, I updated the linux implementation to use ksni as discussed in [#2](https://github.com/olback/tray-item-rs/issues/2). I tested it on linux Mint 20.1.

Hi, I saw in your comment [here](https://github.com/olback/tray-item-rs/issues/1#issuecomment-808688964) that icons on linux can be loaded via gresources. I tried but unfortunately it shows only a black box: ![image](https://user-images.githubusercontent.com/2380253/119042911-c11daa80-b9b8-11eb-9cdf-e66cbd9216c1.png) I tried to...

bug