Add a + button to the Mac task bar that opens the task picker

This commit is contained in:
Ian Gulliver
2026-10-22 21:12:35 -07:00
parent 89025bee59
commit 7556135879
+12
View File
@@ -304,6 +304,18 @@ struct TaskBar: View {
}
}
#if os(macOS)
Button {
overlays.openSwitcher(store)
} label: {
Image(systemName: "plus")
.font(Fonts.font(13, weight: 600))
.foregroundStyle(accent)
.padding(.vertical, 6)
.contentShape(Rectangle())
}
.buttonStyle(.plain)
.help("New task (⌘K)")
.accessibilityLabel("New task")
Button {
overlays.taskList.toggle()
} label: {