-
Notifications
You must be signed in to change notification settings - Fork 37k
Fix traffic light centering on macOS #212471
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
Conversation
ceac772 to
09ff612
Compare
|
I made another small change to the traffic light position. In most Mac apps, the distance between the traffic lights and the window frame is the same horizontally and vertically. The positioning in this PR is based on an invisible margin around the traffic lights, shown in this image: Here are two updated screenshots of the final result (command center enabled on the left, disabled on the right): |
|
@benibenj Would it be possible to include this in one of the next releases? |
|
I'll try and have a look at it this month. |
Pull request was closed




Fixes #208226.
This PR makes two changes to the traffic light centering logic for macOS (see the linked issue for a screenshot of the problem):
12px. A margin of2pxis added at the top and bottom, so the total height for centering is16px.(options.height - 16) / 2is also odd. In this case, Electron rounds up the value. To make the offset look better, the value is rounded down instead.