- 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/api/atom_api_tray.h
void OnClicked(const gfx::Rect& bounds, int modifiers) override;
  void OnDoubleClicked(const gfx::Rect& bounds, int modifiers) override;
  void OnRightClicked(const gfx::Rect& bounds, int modifiers) override;
  void OnBalloonShow() override;
  void OnBalloonClicked() override;
  void OnBalloonClosed() override;
  void OnDrop() override;
  void OnDropFiles(const std::vector<std::string>& files) override;
  void OnDropText(const std::string& text) override;
  void OnDragEntered() override;
  void OnDragExited() override;
  void OnDragEnded() override;
  void SetImage(v8::Isolate* isolate, mate::Handle<NativeImage> image);
  void SetPressedImage(v8::Isolate* isolate, mate::Handle<NativeImage> image);
  void SetToolTip(const std::string& tool_tip);
  void SetTitle(const std::string& title);
  void SetHighlightMode(bool highlight);
  void DisplayBalloon(mate::Arguments* args, const mate::Dictionary& options);
  void PopUpContextMenu(mate::Arguments* args);
  void SetContextMenu(v8::Isolate* isolate, mate::Handle<Menu> menu);
  gfx::Rect GetBounds();
 private:
  v8::Global<v8::Object> menu_;
  std::unique_ptr<TrayIcon> tray_icon_;
  DISALLOW_COPY_AND_ASSIGN(Tray);
};
}  
}  
#endif