You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Dark mode in Devtools is not working on the latest 16.0.0 - 16.0.8 / 17.0.0 #31864
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Electron Version
16.0.0 - 16.0.5
What operating system are you using?
Windows
Operating System Version
Windows 7 x64 SP1
What arch are you using?
x64
Last Known Working Electron version
15.3.4
Expected Behavior
Devtools should have a dark mode applied when the settings is set to 'Dark Mode'.
Actual Behavior
When switching to dark mode, it displays the message that 'Devtools requires a reload' but when I click on the reload button it does nothing. Restarting the app has no effect as well and stays on the light mode.
This worked fine on the previous 15.3.2 version.
Testcase Gist URL
No response
Additional Information
One thing I noticed, when updating from the last version (15.3.2) the dev tools will show up with dark mode enabled on the first run but on subsequent runs, it reverts back to light mode.
Looks like this broke sometime between 16.0.0-beta.3 and 16.0.0-beta.4.
How I tested:
select version 16.0.0-beta.3 or 16.0.0-beta.4 in electron-fiddle with a standard unchanged fiddle
ctrl-shift-i to open devtools
click on gear to change settings
in settings sidebar, click 'preferences'
under 'Appearance' setting, change 'Theme' to a new value that is not 'system preference', e.g. if current value is 'dark' or 'system preference', choose 'light'
ctrl-shift-i to close devtools
ctrl-shift-r to force reload
ctrl-shift-i to reopen devtools
clck gear to change settings again
in settings sidebar, click 'preferences' again
Expected: 'Theme' has the same value as set in previous steps.
Actual (16.0.0-beta.3): same as expected
Acutal (16.0.9-beta.4): 'Theme' is now 'System preference' rather than the value set above
I was able to reproduce this bug on Windows 10 and confirmed what @ckerr said about the regress happening between 16.0.0.beta3 and 16.0.0.beta4. I was also able to reproduce this bug on Windows 11 using Electron 18.0.0-nightly.20211209. Devtools in the Electron Fiddle app itself do retain preferences upon closing and reopening the app.
changed the title [-][Bug]: Dark mode in Devtools is not working on the latest 16.0.0[/-][+][Bug]: Dark mode in Devtools is not working on the latest 16.0.0 - 16.0.5[/+]on Dec 29, 2021
changed the title [-][Bug]: Dark mode in Devtools is not working on the latest 16.0.0 - 16.0.5[/-][+][Bug]: Dark mode in Devtools is not working on the latest 16.0.0 - 16.0.8 / 17.0.0[/+]on Feb 3, 2022
Activity
ckerr commentedon Nov 16, 2021
Looks like this broke sometime between 16.0.0-beta.3 and 16.0.0-beta.4.
How I tested:
Expected: 'Theme' has the same value as set in previous steps.
Actual (16.0.0-beta.3): same as expected
Acutal (16.0.9-beta.4): 'Theme' is now 'System preference' rather than the value set above
ckerr commentedon Nov 16, 2021
v16.0.0-beta.3...v16.0.0-beta.4
andmm commentedon Nov 16, 2021
Don't know if this is related but on clicking 'reload dev tools' I'm getting this error message sometimes, not always.
Browser window was created with barebone options (width, height, preloadScript).
codebytere commentedon Nov 17, 2021
22df8ea feels like the most likely culprit i'd say
andmm commentedon Dec 1, 2021
Still present in the latest 16.0.3 but not on the new 15.3.3.
xbb commentedon Dec 1, 2021
Not only the theme but also other settings like "Preserve log" or "Log XMLHttpRequests", they work but the state don't persist
andriygm commentedon Dec 17, 2021
I was able to reproduce this bug on Windows 10 and confirmed what @ckerr said about the regress happening between 16.0.0.beta3 and 16.0.0.beta4. I was also able to reproduce this bug on Windows 11 using Electron 18.0.0-nightly.20211209. Devtools in the Electron Fiddle app itself do retain preferences upon closing and reopening the app.
[-][Bug]: Dark mode in Devtools is not working on the latest 16.0.0[/-][+][Bug]: Dark mode in Devtools is not working on the latest 16.0.0 - 16.0.5[/+][-][Bug]: Dark mode in Devtools is not working on the latest 16.0.0 - 16.0.5[/-][+][Bug]: Dark mode in Devtools is not working on the latest 16.0.0 - 16.0.8 / 17.0.0[/+]andmm commentedon Feb 3, 2022
This problem still persists on the latest 16.0.8 and the newer 17.0.0. Works fine on the 15.x.y branch.
nornagon commentedon Feb 3, 2022
I'd say this is the culprit: 7ef4e4d
andmm commentedon Feb 22, 2022
Still happening as of 17.0.1. Now it's giving me another message: