mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
macos: only define quick terminal configs for AppKit
This commit is contained in:
@ -332,6 +332,7 @@ extension Ghostty {
|
|||||||
return Color(newColor)
|
return Color(newColor)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if canImport(AppKit)
|
||||||
var quickTerminalPosition: QuickTerminalPosition {
|
var quickTerminalPosition: QuickTerminalPosition {
|
||||||
guard let config = self.config else { return .top }
|
guard let config = self.config else { return .top }
|
||||||
var v: UnsafePointer<Int8>? = nil
|
var v: UnsafePointer<Int8>? = nil
|
||||||
@ -341,6 +342,7 @@ extension Ghostty {
|
|||||||
let str = String(cString: ptr)
|
let str = String(cString: ptr)
|
||||||
return QuickTerminalPosition(rawValue: str) ?? .top
|
return QuickTerminalPosition(rawValue: str) ?? .top
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
var resizeOverlay: ResizeOverlay {
|
var resizeOverlay: ResizeOverlay {
|
||||||
guard let config = self.config else { return .after_first }
|
guard let config = self.config else { return .after_first }
|
||||||
|
Reference in New Issue
Block a user