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:
Mitchell Hashimoto
2024-02-01 23:05:55 -08:00
committed by GitHub

View File

@ -191,8 +191,8 @@ class TerminalWindow: NSWindow {
// backdrop look MUCH better. I couldn't figure out a perfect color to use that works // backdrop look MUCH better. I couldn't figure out a perfect color to use that works
// for both so we just check the appearance. // for both so we just check the appearance.
if effectiveAppearance.name == .aqua { if effectiveAppearance.name == .aqua {
view.layer?.backgroundColor = NSColor.textBackgroundColor.cgColor.copy(alpha: 0.45) view.layer?.backgroundColor = CGColor(genericGrayGamma2_2Gray: 0.95, alpha: 1)
topBorder.layer?.backgroundColor = NSColor.textBackgroundColor.cgColor.copy(alpha: 0.85) topBorder.layer?.backgroundColor = CGColor(genericGrayGamma2_2Gray: 0.0, alpha: 0.2)
} else { } else {
view.layer?.backgroundColor = CGColor(genericGrayGamma2_2Gray: 0.0, alpha: 0.45) view.layer?.backgroundColor = CGColor(genericGrayGamma2_2Gray: 0.0, alpha: 0.45)
topBorder.layer?.backgroundColor = CGColor(genericGrayGamma2_2Gray: 0.0, alpha: 0.85) topBorder.layer?.backgroundColor = CGColor(genericGrayGamma2_2Gray: 0.0, alpha: 0.85)