Basic proxy icons showing

Removed changes that accidentally carried over from another local
branch.

Basic Proxy Icons showing
This commit is contained in:
johnseth97
2024-10-22 22:45:03 -04:00
parent 81984b2f11
commit 7f898ce01f
2 changed files with 11 additions and 9 deletions

View File

@ -235,6 +235,15 @@ class BaseTerminalController: NSWindowController,
// Set the main window title // Set the main window title
window.title = to window.title = to
// Get the current working directory from the focused surface
if let pwd = focusedSurface?.pwd {
// Set the window's representedURL to the current working directory
window.representedURL = URL(fileURLWithPath: pwd)
} else {
// If we don't have a pwd, set representedURL to nil
window.representedURL = nil
}
} }
func cellSizeDidChange(to: NSSize) { func cellSizeDidChange(to: NSSize) {

View File

@ -213,14 +213,7 @@ class TerminalController: BaseTerminalController {
} }
// If window decorations are disabled, remove our title // If window decorations are disabled, remove our title
if (!ghostty.config.windowDecorations) { if (!ghostty.config.windowDecorations) { window.styleMask.remove(.titled) }
window.titleVisibility = .hidden
window.standardWindowButton(.closeButton)?.isHidden = true
window.standardWindowButton(.miniaturizeButton)?.isHidden = true
window.standardWindowButton(.zoomButton)?.isHidden = true
window.titlebarAppearsTransparent = true
window.styleMask.insert(.fullSizeContentView)
}
// Terminals typically operate in sRGB color space and macOS defaults // Terminals typically operate in sRGB color space and macOS defaults
// to "native" which is typically P3. There is a lot more resources // to "native" which is typically P3. There is a lot more resources