macos: fix quick terminal glassy background

This commit is contained in:
Lukas
2026-03-08 15:22:37 +01:00
parent eaef1094d9
commit df4d9bc0d0
2 changed files with 2 additions and 7 deletions

View File

@@ -625,6 +625,8 @@ class QuickTerminalController: BaseTerminalController {
window.isOpaque = true
window.backgroundColor = .windowBackgroundColor
}
terminalViewContainer?.ghosttyConfigDidChange(ghostty.config, preferredBackgroundColor: nil)
}
private func showNoNewTabAlert() {

View File

@@ -62,13 +62,6 @@ class TerminalViewContainer: NSView {
updateGlassEffectTopInsetIfNeeded()
}
@objc private func ghosttyConfigDidChange(_ notification: Notification) {
guard let config = notification.userInfo?[
Notification.Name.GhosttyConfigChangeKey
] as? Ghostty.Config else { return }
ghosttyConfigDidChange(config, preferredBackgroundColor: (window as? TerminalWindow)?.preferredBackgroundColor)
}
func ghosttyConfigDidChange(_ config: Ghostty.Config, preferredBackgroundColor: NSColor?) {
let newValue = DerivedConfig(config: config, preferredBackgroundColor: preferredBackgroundColor, cornerRadius: windowCornerRadius)
guard newValue != derivedConfig else { return }