|
@@ -226,8 +226,6 @@ const blue = color.substr(4, 2) // "cc"
|
|
|
const alpha = color.substr(6, 2) // "dd"
|
|
|
```
|
|
|
|
|
|
-This API is only available on macOS 10.14 Mojave or newer.
|
|
|
-
|
|
|
### `systemPreferences.getColor(color)` _Windows_ _macOS_
|
|
|
|
|
|
* `color` string - One of the following values:
|
|
@@ -310,8 +308,6 @@ This API is only available on macOS 10.14 Mojave or newer.
|
|
|
Returns `string` - The system color setting in RGB hexadecimal form (`#ABCDEF`).
|
|
|
See the [Windows docs][windows-colors] and the [macOS docs][macos-colors] for more details.
|
|
|
|
|
|
-The following colors are only available on macOS 10.14: `find-highlight`, `selected-content-background`, `separator`, `unemphasized-selected-content-background`, `unemphasized-selected-text-background`, and `unemphasized-selected-text`.
|
|
|
-
|
|
|
[windows-colors]: https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getsyscolor
|
|
|
[macos-colors]: https://developer.apple.com/design/human-interface-guidelines/macos/visual-design/color#dynamic-system-colors
|
|
|
|
|
@@ -388,9 +384,7 @@ Returns `boolean` - `true` if the current process is a trusted accessibility cli
|
|
|
|
|
|
Returns `string` - Can be `not-determined`, `granted`, `denied`, `restricted` or `unknown`.
|
|
|
|
|
|
-This user consent was not required on macOS 10.13 High Sierra so this method will always return `granted`.
|
|
|
-macOS 10.14 Mojave or higher requires consent for `microphone` and `camera` access.
|
|
|
-macOS 10.15 Catalina or higher requires consent for `screen` access.
|
|
|
+macOS requires consent for all access.
|
|
|
|
|
|
Windows 10 has a global setting controlling `microphone` and `camera` access for all win32 applications.
|
|
|
It will always return `granted` for `screen` and for all media types on older versions of Windows.
|
|
@@ -403,8 +397,6 @@ Returns `Promise<boolean>` - A promise that resolves with `true` if consent was
|
|
|
|
|
|
**Important:** In order to properly leverage this API, you [must set](https://developer.apple.com/documentation/avfoundation/cameras_and_media_capture/requesting_authorization_for_media_capture_on_macos?language=objc) the `NSMicrophoneUsageDescription` and `NSCameraUsageDescription` strings in your app's `Info.plist` file. The values for these keys will be used to populate the permission dialogs so that the user will be properly informed as to the purpose of the permission request. See [Electron Application Distribution](../tutorial/application-distribution.md#rebranding-with-downloaded-binaries) for more information about how to set these in the context of Electron.
|
|
|
|
|
|
-This user consent was not required until macOS 10.14 Mojave, so this method will always return `true` if your system is running 10.13 High Sierra.
|
|
|
-
|
|
|
### `systemPreferences.getAnimationSettings()`
|
|
|
|
|
|
Returns `Object`:
|
|
@@ -425,8 +417,6 @@ system default as well as the value of `getEffectiveAppearance`.
|
|
|
|
|
|
Possible values that can be set are `dark` and `light`, and possible return values are `dark`, `light`, and `unknown`.
|
|
|
|
|
|
-This property is only available on macOS 10.14 Mojave or newer.
|
|
|
-
|
|
|
### `systemPreferences.effectiveAppearance` _macOS_ _Readonly_
|
|
|
|
|
|
A `string` property that can be `dark`, `light` or `unknown`.
|