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

Text in menubar rather than icon #23

Closed
jsifalda opened this issue Jun 4, 2015 · 5 comments
Closed

Text in menubar rather than icon #23

jsifalda opened this issue Jun 4, 2015 · 5 comments

Comments

@jsifalda
Copy link

jsifalda commented Jun 4, 2015

Is there way how to display text in menu bar instead of icon?
For example if I want to use it as a countdown? (changing text every minute?)

@jenslind
Copy link
Collaborator

jenslind commented Jun 5, 2015

I don't think Electron supports this.
See electron/electron#1553

@jsifalda
Copy link
Author

jsifalda commented Jun 5, 2015

such a pity :(

@davej
Copy link
Contributor

davej commented Jun 16, 2015

@jsifalda You could probably create the icon on the fly using canvas and output to png, dataUrl = canvas.toDataURL("image/png"). Then read the Data URL using Electron's nativeImage API nativeImage.createFromDataUrl(dataUrl).

@vitorgalvao
Copy link

This is indeed supported by Electron. Perhaps not on Linux and Windows, but definitely on OS X. Kyoku does it to show the currently playing song from iTunes.

@willwashburn
Copy link

As @vitorgalvao noted, in OSX at least you should be able to set the title of the electron Tray instance:
http://electron.atom.io/docs/v0.36.8/api/tray/#traysettitletitle-os-x

For instance

mb.on('ready', function ready () {
  mb.tray.setTitle('woo!')
})

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

6 participants