electron-types 38.5.0 → 38.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/electron.d.ts +35 -13
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/dist/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 38.
|
|
1
|
+
// Type definitions for Electron 38.7.0
|
|
2
2
|
// Project: http://electronjs.org/
|
|
3
3
|
// Definitions by: The Electron Team <https://github.com/electron/electron>
|
|
4
4
|
// Definitions: https://github.com/electron/typescript-definitions
|
|
@@ -1369,6 +1369,13 @@ declare namespace Electron {
|
|
|
1369
1369
|
* whether or not the current OS version allows for native emoji pickers.
|
|
1370
1370
|
*/
|
|
1371
1371
|
isEmojiPanelSupported(): boolean;
|
|
1372
|
+
/**
|
|
1373
|
+
* whether hardware acceleration is currently disabled.
|
|
1374
|
+
*
|
|
1375
|
+
* > [!NOTE] This information is only usable after the `gpu-info-update` event is
|
|
1376
|
+
* emitted.
|
|
1377
|
+
*/
|
|
1378
|
+
isHardwareAccelerationEnabled(): boolean;
|
|
1372
1379
|
/**
|
|
1373
1380
|
* `true` if the application—including all of its windows—is hidden (e.g. with
|
|
1374
1381
|
* `Command-H`), `false` otherwise.
|
|
@@ -3003,18 +3010,22 @@ declare namespace Electron {
|
|
|
3003
3010
|
*
|
|
3004
3011
|
* The `accentColor` parameter accepts the following values:
|
|
3005
3012
|
*
|
|
3006
|
-
* * **Color string** -
|
|
3007
|
-
* (Hex, RGB, RGBA, HSL, HSLA, or named colors). Alpha values in
|
|
3008
|
-
* are ignored and the color is treated as fully opaque.
|
|
3009
|
-
* * **`true`** -
|
|
3013
|
+
* * **Color string** - Like `true`, but sets a custom accent color using standard
|
|
3014
|
+
* CSS color formats (Hex, RGB, RGBA, HSL, HSLA, or named colors). Alpha values in
|
|
3015
|
+
* RGBA/HSLA formats are ignored and the color is treated as fully opaque.
|
|
3016
|
+
* * **`true`** - Enable accent color highlighting for the window with the system
|
|
3017
|
+
* accent color regardless of whether accent colors are enabled for windows in
|
|
3018
|
+
* System `Settings.`
|
|
3019
|
+
* * **`false`** - Disable accent color highlighting for the window regardless of
|
|
3020
|
+
* whether accent colors are currently enabled for windows in System Settings.
|
|
3021
|
+
* * **`null`** - Reset window accent color behavior to follow behavior set in
|
|
3010
3022
|
* System Settings.
|
|
3011
|
-
* * **`false`** - Explicitly disables accent color highlighting for the window.
|
|
3012
3023
|
*
|
|
3013
3024
|
* Examples:
|
|
3014
3025
|
*
|
|
3015
3026
|
* @platform win32
|
|
3016
3027
|
*/
|
|
3017
|
-
setAccentColor(accentColor: (boolean) | (string)): void;
|
|
3028
|
+
setAccentColor(accentColor: (boolean) | (string) | (null)): void;
|
|
3018
3029
|
/**
|
|
3019
3030
|
* Sets whether the window should show always on top of other windows. After
|
|
3020
3031
|
* setting this, the window is still a normal window, not a toolbox window which
|
|
@@ -5737,18 +5748,22 @@ declare namespace Electron {
|
|
|
5737
5748
|
*
|
|
5738
5749
|
* The `accentColor` parameter accepts the following values:
|
|
5739
5750
|
*
|
|
5740
|
-
* * **Color string** -
|
|
5741
|
-
* (Hex, RGB, RGBA, HSL, HSLA, or named colors). Alpha values in
|
|
5742
|
-
* are ignored and the color is treated as fully opaque.
|
|
5743
|
-
* * **`true`** -
|
|
5751
|
+
* * **Color string** - Like `true`, but sets a custom accent color using standard
|
|
5752
|
+
* CSS color formats (Hex, RGB, RGBA, HSL, HSLA, or named colors). Alpha values in
|
|
5753
|
+
* RGBA/HSLA formats are ignored and the color is treated as fully opaque.
|
|
5754
|
+
* * **`true`** - Enable accent color highlighting for the window with the system
|
|
5755
|
+
* accent color regardless of whether accent colors are enabled for windows in
|
|
5756
|
+
* System `Settings.`
|
|
5757
|
+
* * **`false`** - Disable accent color highlighting for the window regardless of
|
|
5758
|
+
* whether accent colors are currently enabled for windows in System Settings.
|
|
5759
|
+
* * **`null`** - Reset window accent color behavior to follow behavior set in
|
|
5744
5760
|
* System Settings.
|
|
5745
|
-
* * **`false`** - Explicitly disables accent color highlighting for the window.
|
|
5746
5761
|
*
|
|
5747
5762
|
* Examples:
|
|
5748
5763
|
*
|
|
5749
5764
|
* @platform win32
|
|
5750
5765
|
*/
|
|
5751
|
-
setAccentColor(accentColor: (boolean) | (string)): void;
|
|
5766
|
+
setAccentColor(accentColor: (boolean) | (string) | (null)): void;
|
|
5752
5767
|
/**
|
|
5753
5768
|
* Sets whether the window should show always on top of other windows. After
|
|
5754
5769
|
* setting this, the window is still a normal window, not a toolbox window which
|
|
@@ -19643,6 +19658,13 @@ declare namespace Electron {
|
|
|
19643
19658
|
* `session` is explicitly specified, `partition` is ignored.
|
|
19644
19659
|
*/
|
|
19645
19660
|
partition?: string;
|
|
19661
|
+
/**
|
|
19662
|
+
* When set to `true`, custom protocol handlers registered for the request's URL
|
|
19663
|
+
* scheme will not be called. This allows forwarding an intercepted request to the
|
|
19664
|
+
* built-in handler. webRequest handlers will still be triggered when bypassing
|
|
19665
|
+
* custom protocols. Defaults to `false`.
|
|
19666
|
+
*/
|
|
19667
|
+
bypassCustomProtocolHandlers?: boolean;
|
|
19646
19668
|
/**
|
|
19647
19669
|
* Can be `include`, `omit` or `same-origin`. Whether to send credentials with this
|
|
19648
19670
|
* request. If set to `include`, credentials from the session associated with the
|
package/dist/version.json
CHANGED