#47629: fix: accent color should reflect system settings without restart
Merged
Description of Change
Closes #47626.
Refs #47285 (comment).
Fixes an issue where a window's accent color didn't reflect system settings without restart.
After this PR:
- System Accent Disabled and
accentColor: undefined
=> ❌ Frame does NOT have accent color - System Accent Disabled and
accentColor: true
=> ✅ Frame has accent color - System Accent Disabled and
accentColor: #rrggbb
=> ✅ Frame has accent color - System Accent Disabled and
accentColor: false
=> ❌ Frame does NOT have accent color - System Accent Enabled and
accentColor: undefined
=> ✅ Frame has accent color - System Accent Enabled and
accentColor: true
=> ✅ Frame has accent color - System Accent Enabled and
accentColor: #rrggbb
=> ✅ Frame has accent color - System Accent Enabled and
accentColor: false
=> ❌ Frame does NOT have accent color
cc @bpasero
Checklist
- PR description included and stakeholders cc'd
-
npm test
passes - PR release notes describe the change in a way relevant to app developers, and are capitalized, punctuated, and past tense.
Release Notes
Notes: Fixed an issue where the window required restart in order to recognize system accent color setting change.
Backports
38-x-y
MergedPR Number
#47658Merged At
Jul 3, 2025, 3:19:29 PM
Released In
v38.0.0-alpha.4Release Date
Jul 7, 2025, 8:32:17 AM
Semver Impact
Major
Breaking changes
Minor
New features
Patch
Bug fixes
None
Docs, tests, etc.
Semantic Versioning helps users understand the impact of updates:
- Major (X.y.z): Breaking changes that may require code modifications
- Minor (x.Y.z): New features that maintain backward compatibility
- Patch (x.y.Z): Bug fixes that don't change the API
- None: Changes that don't affect using facing parts of Electron