chore: deprecate setHighlightMode (#19202)
This commit is contained in:
parent
06d48514c6
commit
1f70dfbffd
3 changed files with 17 additions and 0 deletions
|
@ -152,6 +152,17 @@ app.enableMixedSandbox()
|
|||
|
||||
Mixed-sandbox mode is now enabled by default.
|
||||
|
||||
### `Tray`
|
||||
|
||||
Under macOS Catalina our former Tray implementation breaks.
|
||||
Apple's native substitute doesn't support changing the highlighting behavior.
|
||||
|
||||
```js
|
||||
// Deprecated
|
||||
tray.setHighlightMode(mode)
|
||||
// API will be removed in v7.0 without replacement.
|
||||
```
|
||||
|
||||
## Planned Breaking API Changes (5.0)
|
||||
|
||||
### `new BrowserWindow({ webPreferences })`
|
||||
|
|
|
@ -216,6 +216,8 @@ Returns `String` - the title displayed next to the tray icon in the status bar
|
|||
|
||||
Sets when the tray's icon background becomes highlighted (in blue).
|
||||
|
||||
**[Deprecated](breaking-changes.md#tray)**
|
||||
|
||||
**Note:** You can use `highlightMode` with a [`BrowserWindow`](browser-window.md)
|
||||
by toggling between `'never'` and `'always'` modes when the window visibility
|
||||
changes.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue