mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-09-24 20:18:35 +00:00
config: make the proxy icon documentation more detailed
This commit is contained in:
@@ -229,15 +229,15 @@ extension Ghostty {
|
||||
return String(cString: ptr)
|
||||
}
|
||||
|
||||
var macosTitlebarProxyIcon: Ghostty.MacOSTitlebarProxyIcon {
|
||||
let defaultValue = Ghostty.MacOSTitlebarProxyIcon.visible
|
||||
var macosTitlebarProxyIcon: MacOSTitlebarProxyIcon {
|
||||
let defaultValue = MacOSTitlebarProxyIcon.visible
|
||||
guard let config = self.config else { return defaultValue }
|
||||
var v: UnsafePointer<Int8>? = nil
|
||||
let key = "macos-titlebar-proxy-icon"
|
||||
guard ghostty_config_get(config, &v, key, UInt(key.count)) else { return defaultValue }
|
||||
guard let ptr = v else { return defaultValue }
|
||||
let str = String(cString: ptr)
|
||||
return Ghostty.MacOSTitlebarProxyIcon(rawValue: str) ?? defaultValue
|
||||
return MacOSTitlebarProxyIcon(rawValue: str) ?? defaultValue
|
||||
}
|
||||
|
||||
var macosWindowShadow: Bool {
|
||||
|
Reference in New Issue
Block a user