- Electron version: 1.2.7
- Operating system: OSX

Hi everyone,
I'm working on a project where I have a Tray icon, and a window pops out of it when clicked, and this window is hidden when the Tray is clicked again. 
The current behaviour of the Tray when clicked is to be highlighted while clicked, but I'd like to make it stay highlighted while my window is opened.

I haven't found a way to make it work with the latest (1.2.7) version of electron. What I'd suggest is to add a Tray method 'setHighlighted' which takes a boolean, along with 'getHighlighted' which returns a boolean. Is it feasible ?

atom/browser/ui/tray_icon.h
virtual void PopUpContextMenu(const gfx::Point& pos,
                                AtomMenuModel* menu_model);
  
  virtual void SetContextMenu(AtomMenuModel* menu_model) = 0;
  
  virtual gfx::Rect GetBounds();
  void AddObserver(TrayIconObserver* obs) { observers_.AddObserver(obs); }
  void RemoveObserver(TrayIconObserver* obs) { observers_.RemoveObserver(obs); }
  void NotifyClicked(const gfx::Rect& = gfx::Rect(), int modifiers = 0);
  void NotifyDoubleClicked(const gfx::Rect& = gfx::Rect(), int modifiers = 0);
  void NotifyBalloonShow();
  void NotifyBalloonClicked();
  void NotifyBalloonClosed();
  void NotifyRightClicked(const gfx::Rect& bounds = gfx::Rect(),
                          int modifiers = 0);
  void NotifyDrop();
  void NotifyDropFiles(const std::vector<std::string>& files);
  void NotifyDropText(const std::string& text);
  void NotifyDragEntered();
  void NotifyDragExited();
  void NotifyDragEnded();
 protected:
  TrayIcon();
 private:
  base::ObserverList<TrayIconObserver> observers_;
  DISALLOW_COPY_AND_ASSIGN(TrayIcon);
};
}  
#endif