Add a + button to the Mac task bar that opens the task picker
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user