mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-27 07:59:33 +01:00
feat(desktop): the whole-display full screen is on by default, has a switch in App Settings, and the tabs go around the camera
Three things the owner asked for after seeing the first build on a MacBook
Pro with a camera housing, and one bug that run found.
On by default. `wholeScreen` in desktop.json now reads as on when it is
absent. The View menu item shows only while a display with a housing is
connected, since the option's own value no longer says anything about the Mac.
A switch in App Settings (Appearance > Mac App). The setting stays the app's:
the app tells each page what the switch shows
(`CodemanHostCutout.option({ available, enabled })`, on every page load and
whenever it changes), the group shows only inside the app on a Mac with such a
display, and saving sends a changed switch back through
`CodemanHost.setWholeScreen` (IPC `wholeScreen`, trusted frames only). The
menu item and every open page follow. It is never a key of the settings the
page stores or the server keeps.
Tabs on both sides of the camera. The toolbar's box used to start left of the
housing, so the first row of tabs ended there and the room up to the toolbar
stayed empty: three of ten tabs in the first row on that display. Now
`fitTabs()` reads the tabs' rectangles, finds the one that would overlap the
housing and gives the room to the tab before it as its right margin, so the
row carries on right of the housing (five of ten there, same header height).
Nothing is added to the strip and no tab is reordered. The tab strip calls it
once its row mode is decided and before it measures one row; a resize observer
follows a tab that grows or is added with no render behind it. The toolbar
keeps its own box, a user-chosen width included, and takes the covering box
(`html.host-cutout-toolbar`) only when it would reach the housing, and in a
solo window.
The bug: a window that comes out of a macOS Space is its own first responder
and takes no keys. Ticking the option while in macOS's full screen left the
terminal with a hollow cursor until a click. The web view now gets the keys
when nothing else had them.
Seen on the MacBook with the first build: launch into the mode, typing, the
menu bar sliding in over the header, leaving and entering, both change-overs,
relaunch, command+W, Dock and menu bar never stuck. Not yet seen there: this
commit's default, switch and focus fix (the Mac went to sleep before the
second round).
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
d5ddf2e250
commit
150f01e9b4
18 files changed
+899
-118
No files matched your search
@@ -2,4 +2,4 @@
|
||||
'aicodeman': patch
|
||||
---
|
||||
|
||||
**Mac app: full screen over the whole display.** On a MacBook with a camera housing (the notch), macOS's full screen leaves a black bar across the top of the display. With **View > Full Screen Uses the Area Beside the Camera** turned on, the Mac app's full screen covers the whole display instead: Codeman's header moves up beside the camera, the tabs to its left and the toolbar to its right, and the terminal gains the height of the bar. The green button, the menu item, ⌃⌘F and the launch into full screen all follow the option, and switching it while the window is in full screen changes it over at once. It is off until you turn it on, because it is not a macOS Space: the window covers the desktop it is on instead of sliding into a Space of its own. The page stays below the camera, as before, with a Codeman server from before this release and while the tabs are grouped by state, by case or as a ledger in the header strip, where ending every row of tabs at the camera would cost more room than the bar gives.
|
||||
**Mac app: full screen over the whole display.** On a MacBook with a camera housing (the notch), macOS's full screen leaves a black bar across the top of the display. The Mac app's full screen now covers the whole display instead: Codeman's header moves up beside the camera, the tabs go around it on both sides, the toolbar stays at the right, and the terminal gains the height of the bar. The green button, the menu item, ⌃⌘F and the launch into full screen all take it. It is on by default and can be turned off with **View > Full Screen Uses the Area Beside the Camera** or the same switch in **App Settings > Appearance > Mac App** (both only show on a Mac whose display has a camera housing); switching it while the window is in full screen changes it over at once. Off gives macOS's own full screen back, which is a Space of its own: the whole-display kind covers the desktop it is on instead. The page stays below the camera, as before, with a Codeman server from before this release and while the tabs are grouped by state, by case or as a ledger in the header strip.
|
||||
Reference in new issue
Block a user