-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
Window chrome on MacOS #202
Comments
I don't have a macOS device to test, but I do have an idea of what the issue might be. I'll create a custom build later today to test. |
Thanks! Just let me know and I can test it. |
Can you try downloading the PR build for |
I pushed an additional change that may fix it. If you don't want to wait for the PR build you can pull the branch and build it locally with |
Thanks @jeffvli. That draws proper native MacOS titlebar now. Just one thing is that titlebar is lacking app theme colors. It always uses OS theme instead of the app theme. I think you might need to handle native theme switching. I tried to get it to work, but I think I'm not very well understanding the code structure and it is somewhat different from the basic electron example in the linked guide. |
I think what could help is draw no frame for MacOS native window, but set padding in this hook for |
Sorry for no updates on this for a while. I'd appreciate if someone with a macOS device can work on this instead since it's difficult for me to work on it when I'm unable to see the output of the changes made. |
I can help to get it to work if you could refactor the code more towards what is described in electron guides or at least separate semantics of |
Add frame to macOS native window bar
Expected Behavior
Window layout should fit nicely into the native window chrome.
Current Behavior
In Native window mode on MacOS the sidebar is overlapping with native window controls. See screenshot below:
I would have used simulated macOS window mode, but it is awfully blurry on 120% zoom (probably a separate issue though less disturbing).
Steps to Reproduce
Open the app on MacOS
Switch to Native window mode
Restart the app
Context
I'm just trying to enjoy MacOS esthetics :)
Your Environment
The text was updated successfully, but these errors were encountered: