fix: let action pill reveal launcher backdrop

This commit is contained in:
Valdemar Lorenzen
2026-10-14 13:47:46 +02:00
parent 5ae4ce7e4b
commit 639167950e
2 changed files with 6 additions and 8 deletions
@@ -297,11 +297,9 @@ final class LauncherWindowController: NSWindowController, NSWindowDelegate, NSSe
let returnKey = ShortcutIndicator("↵")
let actionKeys = ShortcutIndicator("⌘", "K")
let actionPill = NSVisualEffectView()
actionPill.material = .popover
actionPill.blendingMode = .withinWindow
actionPill.state = .active
roundMaterialCorners(actionPill, radius: 18)
let actionPill = NSView()
actionPill.wantsLayer = true
actionPill.layer?.cornerRadius = 18
actionPill.layer?.borderWidth = 0.5
for view in [openButton, returnKey, actionsButton, actionKeys] {
view.translatesAutoresizingMaskIntoConstraints = false
@@ -352,7 +350,7 @@ final class LauncherWindowController: NSWindowController, NSWindowDelegate, NSSe
let border = SunsetPalette.secondaryText.withAlphaComponent(0.22).cgColor
content.layer?.borderColor = border
actionPill.layer?.borderColor = SunsetPalette.accent.withAlphaComponent(0.35).cgColor
actionPill.layer?.backgroundColor = SunsetPalette.accent.withAlphaComponent(0.04).cgColor
actionPill.layer?.backgroundColor = SunsetPalette.accent.withAlphaComponent(0.08).cgColor
}
window.initialFirstResponder = searchField
launcherViews = [header, sectionLabel, scrollView, emptyLabel, footer]