+
Skip to content

Conversation

trop[bot]
Copy link
Contributor

@trop trop bot commented Apr 10, 2025

Backport of #46438

See that PR for details.

Notes: Added nativeTheme.shouldUseDarkColorsForSystemIntegratedUI to distinguish system and app theme.

@trop trop bot requested review from codebytere and a team April 10, 2025 10:08
@trop trop bot added 35-x-y backport This is a backport PR backport/requested 🗳 semver/minor backwards-compatible functionality labels Apr 10, 2025
Closes #46429.
Refs #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.

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
@ckerr ckerr force-pushed the trop/35-x-y-bp-feat-expose-nativetheme-shouldusedarkcolorsforsystemintegratedui--1744279716751 branch from b123a31 to 62a204b Compare April 11, 2025 14:45
Copy link
Member

@VerteDinde VerteDinde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved on behalf of @electron/wg-releases

@codebytere codebytere merged commit 592d015 into 35-x-y Apr 16, 2025
55 checks passed
@codebytere codebytere deleted the trop/35-x-y-bp-feat-expose-nativetheme-shouldusedarkcolorsforsystemintegratedui--1744279716751 branch April 16, 2025 17:40
@release-clerk
Copy link

release-clerk bot commented Apr 16, 2025

Release Notes Persisted

Added nativeTheme.shouldUseDarkColorsForSystemIntegratedUI to distinguish system and app theme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
35-x-y backport/approved ✅ backport This is a backport PR semver/minor backwards-compatible functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载