Skip to content

Commit 85e4219

Browse files
authored
Override tabs and hidden titlebar styles for Worktrunk sidebar (#38)
The "tabs" and "hidden" macos-titlebar-style values don't work with the Worktrunk sidebar. "tabs" installs its own toolbar without a sidebar tracking separator, causing the sidebar to be truncated by the toolbar. "hidden" removes the titlebar entirely, losing the sidebar toggle button. Override both to use the "transparent" titlebar, which properly installs the WorktrunkToolbar with a sidebarTrackingSeparator. Fixes #27
1 parent ef1a852 commit 85e4219

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

macos/Sources/Features/Terminal/TerminalController.swift

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -184,20 +184,13 @@ class TerminalController: BaseTerminalController, TabGroupCloseCoordinator.Contr
184184
return defaultValue
185185
}
186186

187+
// Ghostree: The "tabs" and "hidden" titlebar styles don't work with the
188+
// Worktrunk sidebar. "tabs" installs its own toolbar without a sidebar tracking
189+
// separator, causing the sidebar to be truncated. "hidden" hides the titlebar
190+
// entirely, removing the sidebar toggle. Override both to "transparent".
187191
let nib = switch config.macosTitlebarStyle {
188192
case "native": "Terminal"
189-
case "hidden": "TerminalHiddenTitlebar"
190-
case "transparent": "TerminalTransparentTitlebar"
191-
case "tabs":
192-
#if compiler(>=6.2)
193-
if #available(macOS 26.0, *) {
194-
"TerminalTabsTitlebarTahoe"
195-
} else {
196-
"TerminalTabsTitlebarVentura"
197-
}
198-
#else
199-
"TerminalTabsTitlebarVentura"
200-
#endif
193+
case "hidden", "tabs", "transparent": "TerminalTransparentTitlebar"
201194
default: defaultValue
202195
}
203196

0 commit comments

Comments
 (0)