golodenko
golodenko

Reputation: 83

Can I customize Electron tray app?

I'm trying to make my small app in a tray of OSX that will show some info. The problem is that standard Menu lib allows me to create "natively" looking menus, when I want to make something that looks like this: (screenshot)

Is there a way to create some custom menu items with cells and images or should I create custom window giving the look I want using css? My biggest concern is translucency.

Now I just create it using tempate with Menu.buildFromTemplate. Mayb I'm doing it completely wrong.

enter image description here

Upvotes: 1

Views: 2887

Answers (2)

grahan
grahan

Reputation: 2398

For your purpose you can use the following package to easily create a custom menu bar application: https://github.com/maxogden/menubar. Just design your own index.html and custom logics and your are ready to go further.

Upvotes: 2

Vadim Macagon
Vadim Macagon

Reputation: 14837

Yes, you'll need to create a custom window, you can't create custom menu items via the Electron Menu API.

Upvotes: 3

Related Questions