diff --git a/Package.resolved b/Package.resolved index 42dafa1..b72596c 100644 --- a/Package.resolved +++ b/Package.resolved @@ -1,13 +1,13 @@ { - "originHash" : "6cbbafad3188ca73d4323b67ec257ff43a4176cd441acad2cc7a5e922d335b04", + "originHash" : "a822c74d90bdc435362517f02e179a721c5923e400bda171f9bcb810be2acb0a", "pins" : [ { "identity" : "menuhub", "kind" : "remoteSourceControl", "location" : "https://github.com/mstallone/menuhub", "state" : { - "revision" : "62930793d5bfb53e8173aca342d8017fb1f0175f", - "version" : "0.1.0" + "revision" : "4350830925635a9d201d0a0ba2d5b2169da6c0ac", + "version" : "0.2.0" } }, { diff --git a/Package.swift b/Package.swift index c2f3bd9..6476fac 100644 --- a/Package.swift +++ b/Package.swift @@ -6,7 +6,7 @@ let package = Package( platforms: [.macOS(.v26)], dependencies: [ .package(url: "https://github.com/sparkle-project/Sparkle", exact: "2.9.4"), - .package(url: "https://github.com/mstallone/menuhub", exact: "0.1.0"), + .package(url: "https://github.com/mstallone/menuhub", exact: "0.2.0"), ], targets: [ .executableTarget( diff --git a/Sources/MXSwipe/main.swift b/Sources/MXSwipe/main.swift index b8b9ef4..edb2b3f 100644 --- a/Sources/MXSwipe/main.swift +++ b/Sources/MXSwipe/main.swift @@ -41,7 +41,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate { func applicationDidFinishLaunching(_ notification: Notification) { UserDefaults.standard.register(defaults: ["autoEnable": true]) - hub = MenuHub(icon: NSImage(systemSymbolName: "computermouse", accessibilityDescription: nil)!) { self.section } + hub = MenuHub(symbol: "computermouse") { self.section } NSWorkspace.shared.notificationCenter.addObserver(self, selector: #selector(systemDidWake), name: NSWorkspace.didWakeNotification, object: nil) if isEnabled { connect() } diff --git a/Tools/make-readme-assets.swift b/Tools/make-readme-assets.swift index b0fea4b..413bc75 100644 --- a/Tools/make-readme-assets.swift +++ b/Tools/make-readme-assets.swift @@ -18,8 +18,8 @@ let barHeight: CGFloat = 24 /// The menu as MXSwipe shows it on its own, with the mouse connected. @MainActor func makeMenu() -> NSMenu { - let mxswipe = Member(pid: 1, name: "MXSwipe", launched: Date(), revision: 0, isActive: true, - header: MenuHeader(title: "MX Master 4", detail: .battery(83)), items: [ + let mxswipe = Member(pid: 1, name: "MXSwipe", launched: Date(), yieldsIcon: false, revision: 0, + isActive: true, header: MenuHeader(title: "MX Master 4", detail: .battery(83)), items: [ .action("Turn Gestures Off") {}, .separator, .action("Open at Login", isOn: true) {}, .action("Check for Updates…") {}, ])