diff --git a/macos/Sources/Features/Terminal/TerminalViewContainer.swift b/macos/Sources/Features/Terminal/TerminalViewContainer.swift index d754641d2..81d7ede1f 100644 --- a/macos/Sources/Features/Terminal/TerminalViewContainer.swift +++ b/macos/Sources/Features/Terminal/TerminalViewContainer.swift @@ -87,8 +87,14 @@ class TerminalViewContainer: NSView { let newValue = DerivedConfig(config: config) guard newValue != derivedConfig else { return } derivedConfig = newValue - // Add some delay to wait TerminalWindow to update first - DispatchQueue.main.asyncAfter(deadline: .now() + 0.05, execute: updateGlassEffectIfNeeded) + + // Add some delay to wait TerminalWindow to update first to ensure + // that some of our properties are updated. This is a HACK to ensure + // light/dark themes work, and we will come up with a better way + // in the future. + DispatchQueue.main.asyncAfter( + deadline: .now() + 0.05, + execute: updateGlassEffectIfNeeded) } @objc private func windowDidBecomeKey(_ notification: Notification) {