feat: add about panel customization on linux (#15658)
This commit is contained in:
parent
bc9a7806a5
commit
787dbbe610
5 changed files with 63 additions and 20 deletions
|
@ -1064,22 +1064,23 @@ details. Disabled by default.
|
|||
|
||||
**Note:** Rendering accessibility tree can significantly affect the performance of your app. It should not be enabled by default.
|
||||
|
||||
### `app.showAboutPanel()` _macOS_
|
||||
### `app.showAboutPanel` _macOS_ _Linux_
|
||||
|
||||
Show the about panel with the values defined in the app's
|
||||
`.plist` file or with the options set via `app.setAboutPanelOptions(options)`.
|
||||
Show the app's about panel options. These options can be overridden with `app.setAboutPanelOptions(options)`.
|
||||
|
||||
### `app.setAboutPanelOptions(options)` _macOS_
|
||||
### `app.setAboutPanelOptions(options)` _macOS_ _Linux_
|
||||
|
||||
* `options` Object
|
||||
* `applicationName` String (optional) - The app's name.
|
||||
* `applicationVersion` String (optional) - The app's version.
|
||||
* `copyright` String (optional) - Copyright information.
|
||||
* `credits` String (optional) - Credit information.
|
||||
* `version` String (optional) - The app's build version number.
|
||||
* `version` String (optional) - The app's build version number. _macOS_
|
||||
* `credits` String (optional) - Credit information. _macOS_
|
||||
* `website` String (optional) - The app's website. _Linux_
|
||||
* `iconPath` String (optional) - Path to the app's icon. _Linux_
|
||||
|
||||
Set the about panel options. This will override the values defined in the app's
|
||||
`.plist` file. See the [Apple docs][about-panel-options] for more details.
|
||||
`.plist` file on MacOS. See the [Apple docs][about-panel-options] for more details. On Linux, values must be set in order to be shown; there are no defaults.
|
||||
|
||||
### `app.startAccessingSecurityScopedResource(bookmarkData)` _macOS (mas)_
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue