feat: add transparency checking to nativeTheme (#42862)

* feat: add transparency checking to nativeTheme

Refs https://chromium-review.googlesource.com/c/chromium/src/+/4684870

* chore: deprecate previous function

* chore: fix lint
This commit is contained in:
Shelley Vohr
2024-07-24 14:38:22 +02:00
committed by GitHub
parent 9fc760bc4c
commit 5669a40d5c
8 changed files with 48 additions and 2 deletions

View File

@@ -72,3 +72,7 @@ or is being instructed to use an inverted color scheme.
A `boolean` indicating whether Chromium is in forced colors mode, controlled by system accessibility settings.
Currently, Windows high contrast is the only system setting that triggers forced colors mode.
### `nativeTheme.prefersReducedTransparency` _Readonly_
A `boolean` that indicates the whether the user has chosen via system accessibility settings to reduce transparency at the OS level.