Rewrite menu bar extra with AppKit

This commit is contained in:
世界
2026-01-05 19:19:11 +08:00
parent 91edd77b00
commit ce0d7ead88
17 changed files with 666 additions and 301 deletions
@@ -17,6 +17,19 @@ public extension EnvironmentValues {
}
}
private struct menuBarExtraSpeedModeKey: EnvironmentKey {
static let defaultValue: Binding<Int> = .constant(1)
}
var menuBarExtraSpeedMode: Binding<Int> {
get {
self[menuBarExtraSpeedModeKey.self]
}
set {
self[menuBarExtraSpeedModeKey.self] = newValue
}
}
private struct selectionKey: EnvironmentKey {
static let defaultValue: Binding<NavigationPage> = .constant(.dashboard)
}