focus, brain dump, speech recognition and some argus implementation

This commit is contained in:
joyzhuo
2026-03-28 22:45:29 -04:00
parent 0d6eb99720
commit 15943b4759
18 changed files with 3591 additions and 28 deletions

View File

@@ -1,17 +1,35 @@
//
// LockInBroApp.swift
// LockInBro
//
// Created by Joy Zhuo on 3/28/26.
//
// LockInBroApp.swift App entry point with menu bar + main window
import SwiftUI
@main
struct LockInBroApp: App {
@State private var auth = AuthManager.shared
@State private var session = SessionManager.shared
var body: some Scene {
WindowGroup {
// Main window
WindowGroup("LockInBro") {
ContentView()
.environment(auth)
.environment(session)
}
.defaultSize(width: 840, height: 580)
// Menu bar extra
MenuBarExtra {
MenuBarView()
.environment(auth)
.environment(session)
} label: {
// Show a filled icon when a session is active
if session.isSessionActive {
Image(systemName: "brain.head.profile")
.symbolEffect(.pulse)
} else {
Image(systemName: "brain.head.profile")
}
}
.menuBarExtraStyle(.window)
}
}