Skip to content
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

Bugfix/550 + MacOS traffic lights support #672

Merged
merged 4 commits into from
Sep 15, 2024
Merged

Conversation

fr-eed
Copy link
Contributor

@fr-eed fr-eed commented Sep 3, 2024

Fixes close/exit window behavior on MacOS specified in issue550
Adds support of MacOS traffic lights

@digimezzo
Copy link
Owner

@fr-eed Thank you for this PR. I've planned to give the mac build some love in Preview 34. Preview 33 will be released today. After that, I'll start with preview 34 and will review your PR.

@digimezzo
Copy link
Owner

@fr-eed I've reviewed and tested your PR. Looks great! Just one issue, there is a serious UI performance git caused by appearanceService.needsTrafficLightMargin being called continuously. That call happening continuously is OK, however, it's calling this.desktop.isMacOS in property appearanceService.needsTrafficLightMargin that causes the performance hit. Getting isMaOS should be handled like this._windowHasNativeTitleBar in appearanceService. It shoudl be fetched once from main during appearanceService.initialize(). Coudl you modify that? If you'd rather have me do it, let me know. I can merge the PR and make the change after merging.

@fr-eed
Copy link
Contributor Author

fr-eed commented Sep 12, 2024

I'll modify that. I've also found another bug with fullscreen on MacOS related to this PR that I'll fix

Now _isMacOS is called only once in appearanceService.initialize()

Also added subscription to track fullscreenModeChanged

on MacOS traffic lights now hide when _isFullScreen is true

titleBarStyle typo fix
@digimezzo
Copy link
Owner

@fr-eed Thanks for the change. Just wondering, How did you notice the fullscreen issue? There is currently no logic to put the window fullscreen.

@fr-eed
Copy link
Contributor Author

fr-eed commented Sep 13, 2024

Green traffic light button enters fullscreen by default on MacOS, unlike on Windows it doesn't just maximize an app

@digimezzo
Copy link
Owner

Green traffic light button enters fullscreen by default on MacOS, unlike on Windows it doesn't just maximize an app

Thanks for clarifying. Code looks good. I'm merging.

@digimezzo digimezzo merged commit 96586ce into digimezzo:master Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants