Branchwell

Jotley / app / macOS / Views / NoteDetailPlaceholderView+ToolbarActions.swift

1import SwiftUI
2
3extension NoteDetailPlaceholderView {
4
5 // More menu button
6 var moreMenuButton: some View {
7 Button {
8 showActionsPopover.toggle()
9 } label: {
10 Image(systemName: "ellipsis")
11 .font(.system(size: 18, weight: .medium))
12 }
13 .buttonStyle(JotleyGlassButtonStyle(circular: true, floatsOverContent: true))
14 .floatingTooltip("More Actions")
15 .accessibilityElement(children: .ignore)
16 .accessibilityLabel("More Actions")
17 .accessibilityIdentifier("noteDetailMoreMenuButton")
18
19 }
20
21
22
23 func loadTemplates() {
24 // The observed catalog supplies built-in and user-created templates.
25 }
26}