Preflight Checklist
Issue Details
When setting nativeTheme.themeSource to 'dark' (or 'system' and setting the system theme to 'dark'), the title bar on Windows remains light. On macOS, the title bar accurately reflects the setting.
- Electron Version:
npm ./node_modules/.bin/electron --version: 6.9.0
- package.json:
"electron": "^8.2.5",
- yarn.lock: 8.2.5
- Operating System:
Expected Behavior
(This works as expected on macOS)
|
nativeTheme.themeSource = 'system' |
nativeTheme.themeSource = 'light' |
nativeTheme.themeSource = 'dark' |
| Light Theme |
Light Title Bar |
Light Title Bar |
Dark Title Bar |
| Dark Theme |
Dark Title Bar |
Light Title Bar |
Dark Title Bar |
Actual Behavior
|
nativeTheme.themeSource = 'system' |
nativeTheme.themeSource = 'light' |
nativeTheme.themeSource = 'dark' |
| Light Theme |
Light Title Bar |
Light Title Bar |
Light Title Bar |
| Dark Theme |
Light Title Bar |
Light Title Bar |
Light Title Bar |
To Reproduce
nativeTheme.themeSource = 'dark'
Screenshots
Command Prompt:

File Explorer:

Title Bar in Electron with nativeTheme.themeSource = 'dark'

Preflight Checklist
Issue Details
When setting nativeTheme.themeSource to 'dark' (or 'system' and setting the system theme to 'dark'), the title bar on Windows remains light. On macOS, the title bar accurately reflects the setting.
npm ./node_modules/.bin/electron --version: 6.9.0"electron": "^8.2.5",Expected Behavior
(This works as expected on macOS)
Actual Behavior
To Reproduce
Screenshots
Command Prompt:

File Explorer:

Title Bar in Electron with

nativeTheme.themeSource = 'dark'