feat(macos): add native menu bar app with notch overlay
Introduces a SwiftUI companion app for the Fail Well PWA: menu bar status item, popover with task list / record / history views, command palette, and a Dynamic Island-style notch overlay that shows the active step and timer beside the hardware notch and expands on hover to reveal pause/next controls.
This commit is contained in:
17
macos/Sources/FailWell/Views/SettingsView.swift
Normal file
17
macos/Sources/FailWell/Views/SettingsView.swift
Normal file
@@ -0,0 +1,17 @@
|
||||
import KeyboardShortcuts
|
||||
import SwiftUI
|
||||
|
||||
struct SettingsView: View {
|
||||
var body: some View {
|
||||
Form {
|
||||
Section("Global hotkey") {
|
||||
KeyboardShortcuts.Recorder("Toggle popover:", name: .togglePopover)
|
||||
Text("Three modifiers + a letter is recommended — single- and two-modifier combos collide with system shortcuts.")
|
||||
.font(Theme.monoSmall)
|
||||
.foregroundStyle(Theme.dim)
|
||||
}
|
||||
}
|
||||
.formStyle(.grouped)
|
||||
.frame(width: 420, height: 200)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user