feat: Add getAccentColor on Linux (#48027)

* feat: Implement `getAccentColor` on Linux

* doc: Update OS support for accent color APIs
This commit is contained in:
Tau Gärtli
2025-10-21 20:26:30 +02:00
committed by GitHub
parent 4d329d466b
commit 7ec0ebc50a
4 changed files with 65 additions and 7 deletions

View File

@@ -14,7 +14,7 @@ console.log(systemPreferences.getEffectiveAppearance())
The `systemPreferences` object emits the following events:
### Event: 'accent-color-changed' _Windows_
### Event: 'accent-color-changed' _Windows_ _Linux_
Returns:
@@ -182,7 +182,7 @@ Some popular `key` and `type`s are:
Removes the `key` in `NSUserDefaults`. This can be used to restore the default
or global value of a `key` previously set with `setUserDefault`.
### `systemPreferences.getAccentColor()` _Windows_ _macOS_
### `systemPreferences.getAccentColor()`
Returns `string` - The users current system wide accent color preference in RGBA
hexadecimal form.