New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mojave dark mode causes a white line at the top of Electron apps #13164
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines. |
Confirming this happens in all the Electron apps I have in Mojave dark mode. Offtopic: maybe the |
tested Mojave yesterday, also seen the line. Also the standard file open dialog appeared still in white |
This happens in both dark mode and light mode. I believe it has something to do with apps that hide the title bar. I have the issue in Atom, Hyper, and Slack. I've also reported the issue to Apple. (Other reports might help — they tend to prioritize issues that multiple people report — so if you're encountering this, send them a bug report in the Feedback Assistant app) |
+1 Even chrome on Mojave has it, so I think this is around chromium/electron apps. |
I believe that this line is added by the OS, it is added to other apps too, however when the app doesn't use the native title bar then there is no "gradient" and it stands out more because the contrast is higher. |
@LoganDark It seems like you are correct, I just checked with 4 different apps, 3 of them are native, and each one of them has a different color on that line. Edit: after taking a closer look at it, in native apps, it seems like the line gets lighter the closer it is to the top. |
Any update on this? @ivanreese |
@gilad215 It seems this is a Chrome thing? I don't know, I'm just a user of Electron apps, not a dev on any of these projects. |
Nothing has changed after Chrome update 69. This is still an issue. |
Really frustrating. They have to make an option to disable it.
…On Tue, 25 Sep 2018 at 2:04 Rodrigo Díaz ***@***.***> wrote:
Even a transparent window displays the white border 😞
[image: captura de pantalla 2018-09-24 a la s 20 00 56]
<https://user-images.githubusercontent.com/1670771/45983791-924aad00-c034-11e8-9034-eafd22f9ed74.png>
In this case a fullscreen transparent window.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#13164 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AXyHVF7TC99trs7UGKHDJLrzwCg7kdCSks5ueWUOgaJpZM4Ub1At>
.
|
Experiencing this as well. |
Yes this issue is happening on both dark and light mode |
Did the official release of Mojave fix the issue? |
I am still seeing it with VSCode (microsoft/vscode#54838) |
nope |
Please use: defaults write -app [application name] NSRequiresAquaSystemAppearance -bool No Cancel: defaults delete -app [application name] NSRequiresAquaSystemAppearance This is an unofficial temporary solution. |
The solution from @SinarPandora certainly does reduce the white line to a thinner grey one (which I don't remember being there before). Confirmed with Sublime\ Text and Google\ Chrome. |
Edit: Yeah, @Neofish22 is right, it doesn't appear to fix the issue completely :( There is now a new dimmer line around the whole window. If you still want to try it,
|
Keep reaching to resize my window up a pixel. Makes it feel like I can see other window content in the background. I wonder how other already-dark-by-default apps have fared with the move to system-level dark mode support. Tricky. I don't want macOS touching my Atom electron app at all. I love it just the way it is. |
Is there anyway to test/do this while under development? |
@MarshallOfSound |
This can be fixed with the latest patch that landed in the Electron v6 beta 5 |
@pronebird It's cool, but don't seem like the official resolution? |
Hey folks, I got some good news from apple and validated it just now. The Catalina beta fixes this issue on Apple's side of things, once Catalina has rolled out as a stable release the white line no longer appears on |
sort of a bummer; I was about to pull the trigger on making some "dark mode causes a white line at the top of electron apps" T-shirt, and have the neck collar have a subtle white line around it. booo. ... not entirely convinced this thread is dead yet. but im excited to hear the good word about Catalina. |
#18485 has been backported to Electron 5.0.3, and it fixes this issue for me (using |
Caught up with electron/electron#13164. The eventual fix seems to have to come from Apple (--> Catalina).
This also existed for light mode on my MacOS. Confirmed fixed after upgrading to Catalina. |
@nickensoul did you figure out how to get rid of the black line? |
@bernatfortet nope, just left as it is for now. I believe it requires some changes of interactions with system APIs (and I think, it's the Electron core, so would need a fork) |
gotcha, thanks! |
The white line on top of the screen is transparent. If you can put a It's a bit tricky to get it to render, but adding the following to my custom title bar did the trick. border-top: 1px solid #000000
padding-top: 1px
margin-top: -1px The white bar came down from Edit: this may also require the following inside the title bar: <div style="position: fixed; top: 0; left: 0; background: #000; height: 1px; width: 100%"></div> |
For those coming to this now, it seems to be fixed in Catalina. I just tested it on 10.15.2 |
@adam-lynch In Atom I still see the line: It seems Atom is using an older version of Electron... |
on Big Sur all the windows have white line |
@robjtede I haven't spun up the developer beta yet, but if that's happening with all Electron apps make sure you raise it in the feedback assistant 😄 |
Not only the third party apps have this issue, but also all the Apple apps such as Finder, Music, Safari do. I raise the issue here is to make more people aware of this Big Sur's bug, so that the Apple team could notice it and fix it. Edit: Update the screenshot to make it bigger. |
Any news? It's kinda annoying seeing this white lines in every single window when in dark mode... |
Looks like only the Electron-based apps still have this issue on macOS Big Sur, for example, VS Code. IT IS SO ANNOYING! |
Why was this closed? I still have this issue clear as day. By default this is an issue and this thread does not disclose a one-size-fits-all solve. Latest Electron + Mac OS Sonoma 14.1 (23B74) VSCode itself admits this is an issue since release 9 which is a huge bummer to see: microsoft/vscode#144389 (comment) |
Expected Behavior
No white lines
Actual behavior
There is a thin white line at the top border of Discord
To Reproduce
Download Discord and run.
Screenshots
Additional Information
May be related to dark theme.
I am aware macOS Mojave is not exactly accessible to everyone yet, but I'm reporting this just in case.
The text was updated successfully, but these errors were encountered: