fix: arm held Command on activation and animate number overlays

This commit is contained in:
2026-10-13 22:31:32 +02:00
parent 77f62b8d41
commit 006c7e7dd0
5 changed files with 268 additions and 77 deletions
+2 -1
View File
@@ -3,7 +3,7 @@ import CoreText
@MainActor
final class ShortcutIndicator: NSStackView {
init(_ keys: String...) {
init(_ keys: String..., backgroundColor: NSColor? = nil) {
super.init(frame: .zero)
orientation = .horizontal
alignment = .centerY
@@ -21,6 +21,7 @@ final class ShortcutIndicator: NSStackView {
badge.layer?.cornerRadius = 5
badge.layer?.borderWidth = 1
badge.layer?.borderColor = SunsetPalette.secondaryText.withAlphaComponent(0.35).cgColor
badge.layer?.backgroundColor = backgroundColor?.cgColor
badge.setAccessibilityElement(false)
badge.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate([