[PR #343] [MERGED] CtrlCore: Improve minimizebox and maximizebox handling on macos. #329

Closed
opened 2026-05-05 03:45:52 -06:00 by gitea-mirror · 0 comments
Owner

📋 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: masterHead: klugier/improve-min-max-box-handling-on-macos


📝 Commits (1)

  • 6d13ecc CtrlCore: 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
Zrzut ekranu 2026-01-7 o 21 23 00

After
Zrzut ekranu 2026-01-7 o 21 22 29

Also, the new version is more consistent with how other system apps are handling (Terminal settings - minimize and maximize disabled):
Zrzut ekranu 2026-01-7 o 21 27 13

Zrzut ekranu 2026-01-7 o 21 41 46

On above image these three buttons are always visible, but two of them are disable.

I find another example of our dialog (Print).

Before
Zrzut ekranu 2026-01-7 o 21 36 00

After (more consistent with other apps, however the initial variant might look better)
Zrzut ekranu 2026-01-7 o 21 37 46

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.

## 📋 Pull Request Information **Original PR:** https://github.com/ultimatepp/ultimatepp/pull/343 **Author:** [@klugier](https://github.com/klugier) **Created:** 1/7/2026 **Status:** ✅ Merged **Merged:** 1/9/2026 **Merged by:** [@mirek-fidler](https://github.com/mirek-fidler) **Base:** `master` ← **Head:** `klugier/improve-min-max-box-handling-on-macos` --- ### 📝 Commits (1) - [`6d13ecc`](https://github.com/ultimatepp/ultimatepp/commit/6d13eccd36168c9726b18288d7b398654c613477) CtrlCore: Improve minimizebox and maximizebox handling on macos. ### 📊 Changes **1 file changed** (+9 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `uppsrc/CtrlCore/CocoWin.mm` (+9 -3) </details> ### 📄 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 <img width="284" height="165" alt="Zrzut ekranu 2026-01-7 o 21 23 00" src="https://github.com/user-attachments/assets/f592ea75-9fb7-4a02-9d21-3296cc3db4ca" /> After <img width="296" height="166" alt="Zrzut ekranu 2026-01-7 o 21 22 29" src="https://github.com/user-attachments/assets/d02300c4-2ece-42eb-b37a-ff91ba8c6d8f" /> Also, the new version is more consistent with how other system apps are handling (Terminal settings - minimize and maximize disabled): <img width="522" height="135" alt="Zrzut ekranu 2026-01-7 o 21 27 13" src="https://github.com/user-attachments/assets/27056ddc-1dc9-410c-af8f-1ae8a52b8eed" /> <img width="406" height="137" alt="Zrzut ekranu 2026-01-7 o 21 41 46" src="https://github.com/user-attachments/assets/ea9a0598-2b0d-4ec9-9607-e830e25a328b" /> On above image these three buttons are always visible, but two of them are disable. I find another example of our dialog (Print). Before <img width="529" height="364" alt="Zrzut ekranu 2026-01-7 o 21 36 00" src="https://github.com/user-attachments/assets/45582672-768c-41f6-96ef-a4fb02948370" /> After (more consistent with other apps, however the initial variant might look better) <img width="534" height="378" alt="Zrzut ekranu 2026-01-7 o 21 37 46" src="https://github.com/user-attachments/assets/9e6b50b1-5fc7-4e2b-9695-816f0fec2aff" /> Docs https://developer.apple.com/documentation/appkit/nswindow/stylemask-swift.struct?language=objc --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 03:45:52 -06:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/ultimatepp#329
No description provided.