chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:22:33 +08:00
commit fc4fcbab58
1848 changed files with 472303 additions and 0 deletions
@@ -0,0 +1,13 @@
import AppKit
@MainActor
enum StatusMenuAppearance {
static func pin(_ menu: NSMenu) {
self.pin(menu, to: NSApplication.shared.effectiveAppearance)
}
static func pin(_ menu: NSMenu, to appearance: NSAppearance) {
// The exact effective appearance carries accessibility attributes that its name can omit.
menu.appearance = appearance
}
}