macos: remove some slight duplication

This commit is contained in:
Mitchell Hashimoto
2024-03-26 11:14:43 -07:00
parent f7129880f5
commit ef4b3fed54

View File

@ -250,7 +250,7 @@ class TerminalController: NSWindowController, NSWindowDelegate,
// over 0.1 to prevent: https://github.com/mitchellh/ghostty/issues/1549 // over 0.1 to prevent: https://github.com/mitchellh/ghostty/issues/1549
let bgColor = NSColor(ghostty.config.backgroundColor) let bgColor = NSColor(ghostty.config.backgroundColor)
if (bgColor.luminance > 0.1) { if (bgColor.luminance > 0.1) {
window.backgroundColor = NSColor(ghostty.config.backgroundColor) window.backgroundColor = bgColor
} }
// This makes sure our titlebar renders correctly when there is a transparent background // This makes sure our titlebar renders correctly when there is a transparent background