From bbe35ee02eec292a604bbe2946c723f9cda47a57 Mon Sep 17 00:00:00 2001 From: Pete Schaffner Date: Thu, 28 Mar 2024 10:51:00 +0100 Subject: [PATCH] Revert luminance check from commit f7129880f5c4 This fixes the issues reporting wrong toolbar colors: https://github.com/mitchellh/ghostty/pull/1550#issuecomment-2021538747 --- macos/Sources/Features/Terminal/TerminalController.swift | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/macos/Sources/Features/Terminal/TerminalController.swift b/macos/Sources/Features/Terminal/TerminalController.swift index 07e679771..863e9f88d 100644 --- a/macos/Sources/Features/Terminal/TerminalController.swift +++ b/macos/Sources/Features/Terminal/TerminalController.swift @@ -246,12 +246,8 @@ class TerminalController: NSWindowController, NSWindowDelegate, // when cascading. window.center() - // Set the background color of the window. We only do this if the lum is - // 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 = bgColor - } + // Set the background color of the window + window.backgroundColor = NSColor(ghostty.config.backgroundColor) // This makes sure our titlebar renders correctly when there is a transparent background window.titlebarOpacity = ghostty.config.backgroundOpacity