Revert luminance check from commit f7129880f5c4

This fixes the issues reporting wrong toolbar colors:
https://github.com/mitchellh/ghostty/pull/1550#issuecomment-2021538747
This commit is contained in:
Pete Schaffner
2024-03-28 10:51:00 +01:00
parent cf6017e777
commit bbe35ee02e

View File

@ -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