mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 01:06:08 +03:00
Basic proxy icons showing
Removed changes that accidentally carried over from another local branch. Basic Proxy Icons showing
This commit is contained in:
@ -232,9 +232,18 @@ class BaseTerminalController: NSWindowController,
|
||||
|
||||
func titleDidChange(to: String) {
|
||||
guard let window else { return }
|
||||
|
||||
|
||||
// Set the main window title
|
||||
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) {
|
||||
|
@ -213,14 +213,7 @@ class TerminalController: BaseTerminalController {
|
||||
}
|
||||
|
||||
// If window decorations are disabled, remove our title
|
||||
if (!ghostty.config.windowDecorations) {
|
||||
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)
|
||||
}
|
||||
if (!ghostty.config.windowDecorations) { window.styleMask.remove(.titled) }
|
||||
|
||||
// Terminals typically operate in sRGB color space and macOS defaults
|
||||
// to "native" which is typically P3. There is a lot more resources
|
||||
|
Reference in New Issue
Block a user