mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
Merge pull request #1439 from qwerasd205/macos-fix-lightmode-backdrop
fix(macOS): Use better hardcoded colors for light titlebar tabs window button backdrop
This commit is contained in:
@ -191,8 +191,8 @@ class TerminalWindow: NSWindow {
|
||||
// backdrop look MUCH better. I couldn't figure out a perfect color to use that works
|
||||
// for both so we just check the appearance.
|
||||
if effectiveAppearance.name == .aqua {
|
||||
view.layer?.backgroundColor = NSColor.textBackgroundColor.cgColor.copy(alpha: 0.45)
|
||||
topBorder.layer?.backgroundColor = NSColor.textBackgroundColor.cgColor.copy(alpha: 0.85)
|
||||
view.layer?.backgroundColor = CGColor(genericGrayGamma2_2Gray: 0.95, alpha: 1)
|
||||
topBorder.layer?.backgroundColor = CGColor(genericGrayGamma2_2Gray: 0.0, alpha: 0.2)
|
||||
} else {
|
||||
view.layer?.backgroundColor = CGColor(genericGrayGamma2_2Gray: 0.0, alpha: 0.45)
|
||||
topBorder.layer?.backgroundColor = CGColor(genericGrayGamma2_2Gray: 0.0, alpha: 0.85)
|
||||
|
Reference in New Issue
Block a user