mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
[PR #343] [MERGED] CtrlCore: Improve minimizebox and maximizebox handling on macos. #329
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/ultimatepp#329
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ultimatepp/ultimatepp/pull/343
Author: @klugier
Created: 1/7/2026
Status: ✅ Merged
Merged: 1/9/2026
Merged by: @mirek-fidler
Base:
master← Head:klugier/improve-min-max-box-handling-on-macos📝 Commits (1)
6d13eccCtrlCore: Improve minimizebox and maximizebox handling on macos.📊 Changes
1 file changed (+9 additions, -3 deletions)
View changed files
📝
uppsrc/CtrlCore/CocoWin.mm(+9 -3)📄 Description
We are handling sync caption not optimally on macos. To handle it correctly we need to stop using hide and instead of this use more bulletproff styleMas.
Here is the examples.
Before

After

Also, the new version is more consistent with how other system apps are handling (Terminal settings - minimize and maximize disabled):

On above image these three buttons are always visible, but two of them are disable.
I find another example of our dialog (Print).
Before

After (more consistent with other apps, however the initial variant might look better)

Docs https://developer.apple.com/documentation/appkit/nswindow/stylemask-swift.struct?language=objc
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.