From 0ff6b87f8cbe6e6da76a112915b6eea810a0bef1 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 26 Jul 2016 13:59:19 -0700 Subject: [PATCH] Update tray.setHighlightMode docs --- docs/api/tray.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/api/tray.md b/docs/api/tray.md index 5ab68c5e94..f8b5989b36 100644 --- a/docs/api/tray.md +++ b/docs/api/tray.md @@ -173,12 +173,15 @@ Sets the hover text for this tray icon. Sets the title displayed aside of the tray icon in the status bar. -#### `tray.setHighlightMode(highlight)` _macOS_ +#### `tray.setHighlightMode(mode)` _macOS_ -* `highlight` Boolean +* `mode` String highlight mode with one of the following values: + * `'selection'` - Highlight the tray icon when it is clicked and also when + its context menu is open. This is the default. + * `'always'` - Always highlight the tray icon. + * `'never'` - Never highlight the tray icon. -Sets whether the tray icon's background becomes highlighted (in blue) -when the tray icon is clicked. Defaults to true. +Sets when the tray's icon background becomes highlighted (in blue). #### `tray.displayBalloon(options)` _Windows_