From ef4b3fed549534d25b74e31a9f40a7ccca013841 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 26 Mar 2024 11:14:43 -0700 Subject: [PATCH] macos: remove some slight duplication --- macos/Sources/Features/Terminal/TerminalController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macos/Sources/Features/Terminal/TerminalController.swift b/macos/Sources/Features/Terminal/TerminalController.swift index f2f9ed277..07e679771 100644 --- a/macos/Sources/Features/Terminal/TerminalController.swift +++ b/macos/Sources/Features/Terminal/TerminalController.swift @@ -250,7 +250,7 @@ class TerminalController: NSWindowController, NSWindowDelegate, // over 0.1 to prevent: https://github.com/mitchellh/ghostty/issues/1549 let bgColor = NSColor(ghostty.config.backgroundColor) 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