sfatihk / electron-tray-window

🖼️ Generates custom tray windows with Electron.js
MIT License
171 stars 17 forks source link

Add dynamic tray icon change feature. #10

Closed FavyTeam closed 2 years ago

FavyTeam commented 3 years ago

Hello, Thank you for your great package.

I have some question. How to change tray icon dynamically?

FavyTeam commented 3 years ago

I add some feature on your package.

function setTrayIcon(path){
  tray.setImage(path);
}

and then output setTrayIcon function like below.

module.exports = { setOptions, setTray, setWindow, setWindowSize, setTrayIcon };

I hope you guys add setTrayIcon function in next release. Thanks!

FavyTeam commented 3 years ago

Also some getTray() function is also useful but your package don't have it.

function getTray(){
  return tray;
}

I hope you guys publish those functions in next version. Thanks!

sfatihk commented 3 years ago

Hi @FavyTeam Thanks for your contributions. Seems nice. I thinking to add these features in the next release.

FavyTeam commented 2 years ago

Great! @sfatihk