Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing Icon on the fly #2

Closed
reconbot opened this issue Mar 23, 2015 · 4 comments
Closed

Changing Icon on the fly #2

reconbot opened this issue Mar 23, 2015 · 4 comments

Comments

@reconbot
Copy link

Hi,
Is it possible to keep changing the icon? or set it's width? I'd like to update it with a spark line graph of network latency. I've got a commandline node app I wrote for this already. (to monitor the latency, not graph it.. yet) This is perfect!

Thanks

@max-mapper
Copy link
Owner

i'm not sure actually, check the atom-shell issue tracker. if you figure it out, do let me know!

@reconbot
Copy link
Author

It looks like it can change the image!
https://github.com/atom/atom-shell/blob/master/docs/api/tray.md#traysetimageimage

As for width, I don't know yet. It's worth playing with.

Thanks!

@reconbot
Copy link
Author

The width is as wide as our image =D

screen shot 2015-03-23 at 11 06 07 pm

@reconbot
Copy link
Author

And for the record setImage() does work.

amaury1093 added a commit that referenced this issue May 31, 2019
BREAKING CHANGE:
We're using a named export in Typescript now:
```diff
- var menubar = require('menubar');
+ var { menubar } = require('menubar');
```

Alternatively, using ES6/TS syntax:
```javascript
import { menubar } from 'menubar';
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants