Repository navigation
Use native window and concentric pane corners on macOS 27 - #111
PystoyPlayer wants to merge 9 commits into
Conversation
Continues the native-window-radius proposal in TelegramMessenger#80 by @and2ey.
|
Issues:
|
|
Have you tested this on different versions of macOS with various chat folder settings? |
Key change
On macOS 27 with Swift 6.4+, use the system window corner and container-concentric corners at the 8-point inset for the chat list, folder rail and entertainment sidebar. Keep the native toolbar so AppKit positions traffic lights and its sharing indicator together. Older compilers keep the previous window-radius override and matching fixed pane radii together; older macOS paths are unchanged.
Reason
Continuation of #80 by @and2ey. Removing the window override without converting every pane leaves mismatched corners. The entertainment sidebar now follows the same radius callback as the left pane. The legacy compiler path no longer loses its matching outer radius.
Screenshot/video result (before/after)
Same wide window without folders, 1100×800 points. Direct 610×196 crops of the actual clients. The native sharing indicator remains visible; private chat content is outside the crop.
Before
After
The sharing-indicator regression from the earlier draft is also checked in an identical 1512×886-point window:
Before (earlier draft without native toolbar):
After (native toolbar retained):
Confirmation
macOS 27.0.1 (26A434), Xcode 27.1, Telegram 13.1.0 (283357), Debug arm64. The retained native comparison above covers the wide window, native toolbar and sharing-indicator alignment. It predates the entertainment-pane follow-up. No compact account/chat images are linked here. The non-runnable evidence directory, including six compact images exposing account/chat fragments, has been removed from this branch; previously published immutable GitHub copies are not claimed erased.
The full Debug arm64 client workspace compiled successfully with these shipping sources and real native dependencies on macOS 27.0.1 / Xcode 27.1. It includes other pending changes and local SDK/profile overrides, so this is integration build coverage rather than an independent build of this PR alone.
A fresh run of the updated client opened Saved Messages and the entertainment sidebar, visually checked its outer corners, and closed it successfully. No messages were sent and no private screenshot was published.
Swift 6.3/Xcode 26 and another macOS version are unavailable, so the legacy compiler path was inspected but not runtime-tested. Fullscreen and secondary displays were not tested.