electron/spec
Shelley Vohr 446d0769ed
feat: expose nativeTheme.shouldUseDarkColorsForSystemIntegratedUI (#46438)
feat: expose shouldUseDarkColorsForSystemIntegratedUI

Closes https://github.com/electron/electron/issues/46429.
Refs https://github.com/electron/electron/pull/19735.

This PR adds a new API `shouldUseDarkColorsForSystemIntegratedUI` to the
`nativeTheme` module. This API returns a boolean indicating whether the
system is using dark colors for system integrated UI elements. This is
useful for applications that want to adapt their UI to match the system
theme, especially for those that use system integrated UI elements like
the shell theme or taskbar appearance.
2025-04-10 12:08:29 +02:00
..
fixtures fix: UtilityProcess.fork crash before app ready (#46380) 2025-04-01 13:42:03 +02:00
is-valid-window test: vendor node-is-valid-window (#39965) 2023-09-25 12:43:57 +02:00
lib test: make sure test window is on top for focus tests (#45435) 2025-02-10 13:40:27 -05:00
ts-smoke test: fix app.dock for corrected type (#46110) 2025-03-18 17:44:39 -04:00
.eslintrc.json build: rename spec/.eslintrc -> spec/.eslintrc.json (#38838) 2023-06-19 14:19:11 +02:00
.gitignore feat: add error event for utility process (#43774) 2024-09-27 10:17:06 +09:00
ambient.d.ts test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
api-app-spec.ts test: fix app.dock for corrected type (#46110) 2025-03-18 17:44:39 -04:00
api-auto-updater-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
api-autoupdater-darwin-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
api-browser-view-spec.ts fix: flaky utility and BrowserView tests (#44451) 2024-10-30 20:29:01 -05:00
api-browser-window-spec.ts fix: crash on parent window close and focur/blur (#46559) 2025-04-09 15:35:30 +02:00
api-clipboard-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
api-content-tracing-spec.ts chore: disable flaky content tracing tests on Linux (#45612) 2025-02-14 10:18:42 +01:00
api-context-bridge-spec.ts feat: contextBridge.executeInMainWorld (#45229) 2025-01-23 21:12:46 -05:00
api-corner-smoothing-spec.ts feat: Corner Smoothing CSS rule (Reland) (#46278) 2025-03-31 11:22:23 -05:00
api-crash-reporter-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
api-debugger-spec.ts test: run script to help target discovery and reduce flakes (#44741) 2024-11-20 08:55:09 -06:00
api-desktop-capturer-spec.ts perf: don't wait for thumbnails if they were not requested on macOS (#46138) 2025-03-25 12:20:38 +01:00
api-dialog-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
api-global-shortcut-spec.ts test: exercise fuller globalShortcut matrix (#44488) 2024-11-12 15:31:39 -05:00
api-in-app-purchase-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
api-ipc-main-spec.ts docs: Make ipcRenderer and ipcMain listener API docs consistent (#44651) 2024-11-18 14:44:30 -08:00
api-ipc-renderer-spec.ts docs: Make ipcRenderer and ipcMain listener API docs consistent (#44651) 2024-11-18 14:44:30 -08:00
api-ipc-spec.ts feat: add WebFrameMain detached property (#43473) 2024-10-11 18:33:53 -04:00
api-media-handler-spec.ts fix: crash on getUserMedia with invalid chromeMediaSourceId (#45733) 2025-02-21 10:17:52 -06:00
api-menu-item-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
api-menu-spec.ts fix: crash when generating shortcut text for super accelerator (#44341) 2024-10-22 03:26:38 +09:00
api-native-image-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
api-native-theme-spec.ts feat: expose nativeTheme.shouldUseDarkColorsForSystemIntegratedUI (#46438) 2025-04-10 12:08:29 +02:00
api-net-custom-protocols-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
api-net-log-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
api-net-session-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
api-net-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
api-notification-dbus-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
api-notification-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
api-power-monitor-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
api-power-save-blocker-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
api-process-spec.ts refactor: eliminate duplicate code in spec/api-process-spec.ts (#45927) 2025-03-09 17:37:14 -05:00
api-protocol-spec.ts test: fixup flaky tests (#44349) 2024-10-23 15:14:50 -04:00
api-safe-storage-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
api-screen-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
api-service-worker-main-spec.ts feat: ServiceWorkerMain.scriptURL (#45863) 2025-03-14 21:00:13 -04:00
api-service-workers-spec.ts feat: service worker preload scripts for improved extensions support (#44411) 2025-01-31 09:32:45 -05:00
api-session-spec.ts build: use github actions for windows (#44136) 2024-12-12 11:51:24 -05:00
api-shell-spec.ts test: reenable disabled GHA windows tests (#45062) 2024-12-20 14:49:55 -05:00
api-subframe-spec.ts fix: crash loading about:blank in subframes (#45694) 2025-02-20 12:07:15 -05:00
api-system-preferences-spec.ts chore: remove deprecated systemPreferences.isAeroGlassEnabled() (#45563) 2025-02-18 18:59:00 -06:00
api-touch-bar-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
api-tray-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
api-utility-process-spec.ts fix: race condition in utilityProcess tests (#45926) 2025-03-09 17:37:35 -05:00
api-view-spec.ts feat: view.getVisible() (#44999) 2025-01-31 13:27:16 -05:00
api-web-contents-spec.ts fix: set userAgent on navigationHistory.restore() (#46260) 2025-03-26 10:59:19 -05:00
api-web-contents-view-spec.ts build: use github actions for windows (#44136) 2024-12-12 11:51:24 -05:00
api-web-frame-main-spec.ts fix: dangling speculative frames (#45609) 2025-02-18 17:52:05 -05:00
api-web-frame-spec.ts fix: avoid IPC for renderer webFrame.getZoom... APIs (#45499) 2025-02-10 16:09:11 -05:00
api-web-request-spec.ts feat: add excludeUrls and modify urls in WebRequestFilter for better URL filtering (#44692) 2025-02-17 12:40:47 -08:00
api-web-utils-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
asar-integrity-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
asar-spec.ts chore: cleanup following internal switch to readPackageJSON (#44644) 2024-11-15 11:36:18 -05:00
autofill-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
chromium-spec.ts chore: bump chromium to 136.0.7064.0 (main) (#45985) 2025-03-13 12:02:06 -05:00
crash-spec.ts fix: oob string read when parsing node_options (#46210) 2025-03-25 19:33:10 +09:00
deprecate-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
disabled-tests.json chore: disable tests that require nut.js (#42006) 2024-04-30 21:13:38 -04:00
esm-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
extensions-spec.ts refactor: move extension APIs to session.extensions (#45597) 2025-02-21 17:36:51 -06:00
fuses-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
get-files.ts chore: remove walkdir dev dependency (#42591) 2024-06-21 10:31:10 -04:00
guest-window-manager-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
index.js build: use github actions for windows (#44136) 2024-12-12 11:51:24 -05:00
logging-spec.ts chore: remove remaining references to AppVeyor (#45339) 2025-02-07 12:57:36 +01:00
modules-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
node-spec.ts fix: assert.ok in the renderer process (#46528) 2025-04-08 07:09:54 -05:00
package.json chore: remove remaining references to AppVeyor (#45339) 2025-02-07 12:57:36 +01:00
parse-features-string-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
pipe-transport.ts test: drop now-empty remote runner (#35343) 2022-08-16 15:23:13 -04:00
process-binding-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
release-notes-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
security-warnings-spec.ts feat: expose frame & move properties to console-message event object (#43617) 2024-10-18 16:07:06 -04:00
spellchecker-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
types-spec.ts chore: update node types version (#36924) 2023-01-18 14:46:27 +01:00
version-bump-spec.ts build: add import/order eslint rule (#44085) 2024-10-02 19:10:44 -07:00
visibility-state-spec.ts build: use github actions for windows (#44136) 2024-12-12 11:51:24 -05:00
webview-spec.ts build: use github actions for windows (#44136) 2024-12-12 11:51:24 -05:00
yarn.lock chore: remove remaining references to AppVeyor (#45339) 2025-02-07 12:57:36 +01:00