Added the base of the Menu Bar UI
This commit is contained in:
parent
1378eb7eb3
commit
5ae3d37243
8 changed files with 127 additions and 8 deletions
|
|
@ -1,9 +1,28 @@
|
|||
//
|
||||
// burrow_barApp.swift
|
||||
// burrow-bar
|
||||
//
|
||||
// Created by Thomas Stubblefield on 4/19/23.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import FluidMenuBarExtra
|
||||
|
||||
@main
|
||||
struct BurrowApp: App {
|
||||
struct burrowBarApp: App {
|
||||
@NSApplicationDelegateAdaptor private var appDelegate: AppDelegate
|
||||
|
||||
var body: some Scene {
|
||||
WindowGroup {
|
||||
Settings {
|
||||
Text("Burrow")
|
||||
}
|
||||
}
|
||||
}
|
||||
class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
private var menuBarExtra: FluidMenuBarExtra?
|
||||
|
||||
func applicationDidFinishLaunching(_ notification: Notification) {
|
||||
self.menuBarExtra = FluidMenuBarExtra(title: "Burrow", systemImage: "network.badge.shield.half.filled") {
|
||||
ContentView()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue