focus, brain dump, speech recognition and some argus implementation
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user