mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user