macos: whitespace

This commit is contained in:
Mitchell Hashimoto
2024-01-31 15:44:34 -08:00
parent 4a93181b79
commit 50125c0319
2 changed files with 51 additions and 51 deletions

View File

@ -210,13 +210,13 @@ extension Ghostty {
var rgb: UInt32 = 0 var rgb: UInt32 = 0
let bg_key = "background" let bg_key = "background"
if (!ghostty_config_get(config, &rgb, bg_key, UInt(bg_key.count))) { if (!ghostty_config_get(config, &rgb, bg_key, UInt(bg_key.count))) {
#if os(macOS) #if os(macOS)
return Color(NSColor.windowBackgroundColor) return Color(NSColor.windowBackgroundColor)
#elseif os(iOS) #elseif os(iOS)
return Color(UIColor.systemBackground) return Color(UIColor.systemBackground)
#else #else
#error("unsupported") #error("unsupported")
#endif #endif
} }
let red = Double(rgb & 0xff) let red = Double(rgb & 0xff)