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.
|
// when cascading.
|
||||||
window.center()
|
window.center()
|
||||||
|
|
||||||
// Set the background color of the window. We only do this if the lum is
|
// Set the background color of the window
|
||||||
// over 0.1 to prevent: https://github.com/mitchellh/ghostty/issues/1549
|
window.backgroundColor = NSColor(ghostty.config.backgroundColor)
|
||||||
let bgColor = NSColor(ghostty.config.backgroundColor)
|
|
||||||
if (bgColor.luminance > 0.1) {
|
|
||||||
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
|
||||||
window.titlebarOpacity = ghostty.config.backgroundOpacity
|
window.titlebarOpacity = ghostty.config.backgroundOpacity
|
||||||
|
Reference in New Issue
Block a user