macos: only titlebar tabs uses legacy styling now

pull/7588/head
Mitchell Hashimoto 2025-06-11 15:15:06 -07:00
parent e5cb33e911
commit ccfd33022f
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 2 additions and 4 deletions

View File

@ -7,15 +7,13 @@ import GhosttyKit
/// A classic, tabbed terminal experience.
class TerminalController: BaseTerminalController {
override var windowNibName: NSNib.Name? {
//NOTE(mitchellh): switch to this when we've transitioned all legacy logic out
//let defaultValue = "Terminal"
let defaultValue = "TerminalLegacy"
let defaultValue = "Terminal"
guard let appDelegate = NSApp.delegate as? AppDelegate else { return defaultValue }
let config = appDelegate.ghostty.config
let nib = switch config.macosTitlebarStyle {
case "native": "Terminal"
case "tabs": defaultValue
case "tabs": "TerminalLegacy"
case "hidden": "TerminalHiddenTitlebar"
case "transparent": "TerminalTransparentTitlebar"
default: defaultValue