Images cannot be linked here, but the code below produces buttons that are inset differently than all auto-generated MacOS buttons. Keyboard modifiers are white, rather than gray.
Dividers also don't work properly, nor accept color changes, nor it is reliable to sort in a Rectangle. Spacer() is selectable, but at least an empty Text("") is not.
Why?
Dividers also don't work properly, nor accept color changes, nor it is reliable to sort in a Rectangle. Spacer() is selectable, but at least an empty Text("") is not.
Why?
Code Block swift struct AppMenus: Commands { func some() {} @CommandsBuilder var body: some Commands { CommandMenu("Why") { Button("So") { some() } .keyboardShortcut( KeyEquivalent("s"), modifiers: .command) Text(" ") Spacer() Divider() .foregroundColor(Color(.doesntCare)) Button("Sad") { some() } .keyboardShortcut( KeyEquivalent("s"), modifiers: .command) } CommandGroup(before: CommandGroupPlacement.sidebar) { Button("Why my button so sad?") {} .keyboardShortcut(KeyEquivalent("?"), modifiers: .command) } } }