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
macOS 26 light mode while Electron on dark theme causes a white line at the top of Electron apps #51015
VSCode is an example. Setting the title bar style to custom and the theme to dark while macOS system is on light mode will cause this problem. Changing wallpaper into black will make it more apparent. I found that many electron apps have this kind of problem.
Would you be able to download Electron Fiddle, use it to create a small sample app that allows maintainers to reproduce this issue, and upload it as a GitHub gist from Fiddle?
Hello @AlwaysExtraordinary. Thanks for reporting this and helping to make Electron better!
Would it be possible for you to make a standalone testcase with only the code necessary to reproduce the issue? For example, Electron Fiddle is a great tool for making small test cases and makes it easy to publish your test case to a gist that Electron maintainers can use.
Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests.
Now adding the
blocked/need-reproNeeds a test case to reproduce the bug
label for this reason. After you make a test case, please link to it in a followup comment. This issue will be closed in 10 days if the above is not addressed.
Would you be able to download Electron Fiddle, use it to create a small sample app that allows maintainers to reproduce this issue, and upload it as a GitHub gist from Fiddle?
I find that the newest VS Code on Electron 39.8 also has this problem. This seems to be a long-standing issue across many versions.
Here is a related issue in VS Code repository: microsoft/vscode#144389
Activity
nikwen commentedon Apr 13, 2026
Thanks for reporting!
Would you be able to download Electron Fiddle, use it to create a small sample app that allows maintainers to reproduce this issue, and upload it as a GitHub gist from Fiddle?
electron-issue-triage commentedon Apr 13, 2026
Hello @AlwaysExtraordinary. Thanks for reporting this and helping to make Electron better!
Would it be possible for you to make a standalone testcase with only the code necessary to reproduce the issue? For example, Electron Fiddle is a great tool for making small test cases and makes it easy to publish your test case to a gist that Electron maintainers can use.
Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests.
Now adding the blocked/need-reproNeeds a test case to reproduce the bug
label for this reason. After you make a test case, please link to it in a followup comment. This issue will be closed in 10 days if the above is not addressed.
AlwaysExtraordinary commentedon Apr 14, 2026
Here is my gist example:
https://gist.github.com/AlwaysExtraordinary/0eda27d8d2d36042eb9a6aa4236ad436
Steps to reproduce:
you'll see the distracting white line on the top of the window
nikwen commentedon Apr 14, 2026
Thank you! Does it still happen on Electron v41/v42?
EDIT: Just saw that your gist is on v41. Will update the issue.
AlwaysExtraordinary commentedon Apr 20, 2026
I find that the newest VS Code on Electron 39.8 also has this problem. This seems to be a long-standing issue across many versions.
Here is a related issue in VS Code repository: microsoft/vscode#144389
A-Star100 commentedon Apr 21, 2026
AlwaysExtraordinary commentedon Jul 14, 2026
It looks like macOS 27 beta 3 has removed all the extra white lines on windows. Finally they fixed it—hope they won't reverse it.