dopamine icon indicating copy to clipboard operation
dopamine copied to clipboard

Bugfix/550 + MacOS traffic lights support

Open fr-eed opened this issue 1 year ago • 1 comments

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

fr-eed avatar Sep 03 '24 20:09 fr-eed

@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 avatar Sep 04 '24 06:09 digimezzo

@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.

digimezzo avatar Sep 12 '24 17:09 digimezzo

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

fr-eed avatar Sep 12 '24 19:09 fr-eed

@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.

digimezzo avatar Sep 13 '24 06:09 digimezzo

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

fr-eed avatar Sep 13 '24 09:09 fr-eed

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 avatar Sep 15 '24 16:09 digimezzo