Jotley / app / macOS / Views / NoteDetailPlaceholderView+ScrollAndTabControls.swift
| 1 | import SwiftUI |
| 2 | import AppKit |
| 3 | |
| 4 | extension NoteDetailPlaceholderView { |
| 5 | |
| 6 | var jumpToRecordingTabButton: some View { |
| 7 | Button { |
| 8 | viewModel.jumpToActiveRecordingNote() |
| 9 | } label: { |
| 10 | HStack(spacing: 6) { |
| 11 | Image(systemName: "mic.fill") |
| 12 | .font(.system(size: 12, weight: .semibold)) |
| 13 | .foregroundColor(Color.themePrimaryAccent) |
| 14 | Text("Transcribing") |
| 15 | .font(.system(size: 12, weight: .semibold)) |
| 16 | .foregroundStyle(.primary) |
| 17 | } |
| 18 | .padding(.horizontal, 8) |
| 19 | .frame(height: 24) |
| 20 | .background { JotleyFloatingGlassSurface(shape: Capsule()) } |
| 21 | } |
| 22 | .buttonStyle(PlainButtonStyle()) |
| 23 | .floatingTooltip("Jump to active transcription") |
| 24 | .accessibilityIdentifier("noteDetailJumpToRecordingTab") |
| 25 | } |
| 26 | |
| 27 | } |