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
BIN
Apple/.DS_Store
vendored
Normal file
BIN
Apple/.DS_Store
vendored
Normal file
Binary file not shown.
|
|
@ -5,6 +5,7 @@
|
||||||
<key>com.apple.security.application-groups</key>
|
<key>com.apple.security.application-groups</key>
|
||||||
<array>
|
<array>
|
||||||
<string>$(APP_GROUP_IDENTIFIER)</string>
|
<string>$(APP_GROUP_IDENTIFIER)</string>
|
||||||
|
<string>group.ThomasStubblefield.Unifriend.onesignal</string>
|
||||||
</array>
|
</array>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
||||||
21
Apple/App/Assets.xcassets/sampleNetworkIcon.imageset/Contents.json
vendored
Normal file
21
Apple/App/Assets.xcassets/sampleNetworkIcon.imageset/Contents.json
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "sampleNetworkIcon.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "3x"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
Apple/App/Assets.xcassets/sampleNetworkIcon.imageset/sampleNetworkIcon.png
vendored
Normal file
BIN
Apple/App/Assets.xcassets/sampleNetworkIcon.imageset/sampleNetworkIcon.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 209 KiB |
|
|
@ -1,9 +1,28 @@
|
||||||
|
//
|
||||||
|
// burrow_barApp.swift
|
||||||
|
// burrow-bar
|
||||||
|
//
|
||||||
|
// Created by Thomas Stubblefield on 4/19/23.
|
||||||
|
//
|
||||||
|
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
import FluidMenuBarExtra
|
||||||
|
|
||||||
@main
|
@main
|
||||||
struct BurrowApp: App {
|
struct burrowBarApp: App {
|
||||||
|
@NSApplicationDelegateAdaptor private var appDelegate: AppDelegate
|
||||||
|
|
||||||
var body: some Scene {
|
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()
|
ContentView()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,13 +2,44 @@ import SwiftUI
|
||||||
|
|
||||||
struct ContentView: View {
|
struct ContentView: View {
|
||||||
var body: some View {
|
var body: some View {
|
||||||
VStack {
|
VStack(alignment: .leading) {
|
||||||
Image(systemName: "globe")
|
|
||||||
.imageScale(.large)
|
HStack {
|
||||||
.foregroundColor(.accentColor)
|
|
||||||
Text("Hello, world!")
|
|
||||||
|
Text("Networks")
|
||||||
|
.font(.title3)
|
||||||
|
Spacer()
|
||||||
|
Image(systemName: "badge.plus.radiowaves.forward")
|
||||||
|
.symbolRenderingMode(.palette)
|
||||||
|
.foregroundStyle(.blue, .black)
|
||||||
|
.imageScale(.large) }
|
||||||
|
Divider()
|
||||||
|
VStack(alignment: .leading) {
|
||||||
|
Text("Your Burrows")
|
||||||
|
.padding(.top, 2)
|
||||||
|
.font(.subheadline)
|
||||||
|
.fontWeight(.bold)
|
||||||
|
HStack {
|
||||||
|
Image("sampleNetworkIcon")
|
||||||
|
.resizable()
|
||||||
|
.frame(width: 32, height: 32)
|
||||||
|
.cornerRadius(100)
|
||||||
|
VStack(alignment: .leading) {
|
||||||
|
|
||||||
|
Text("Penguin Pair Burrow")
|
||||||
|
.fontWeight(.medium)
|
||||||
|
|
||||||
|
|
||||||
|
Text(" Recently Validated Certificate")
|
||||||
|
.font(.caption2)
|
||||||
|
.foregroundColor(.blue)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
.padding()
|
.padding()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
objects = {
|
objects = {
|
||||||
|
|
||||||
/* Begin PBXBuildFile section */
|
/* Begin PBXBuildFile section */
|
||||||
|
43E50D6D29FA050600BD2280 /* FluidMenuBarExtra in Frameworks */ = {isa = PBXBuildFile; productRef = 43E50D6C29FA050600BD2280 /* FluidMenuBarExtra */; };
|
||||||
D020F65829E4A697002790F6 /* PacketTunnelProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = D020F65729E4A697002790F6 /* PacketTunnelProvider.swift */; };
|
D020F65829E4A697002790F6 /* PacketTunnelProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = D020F65729E4A697002790F6 /* PacketTunnelProvider.swift */; };
|
||||||
D020F65D29E4A697002790F6 /* BurrowNetworkExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = D020F65329E4A697002790F6 /* BurrowNetworkExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
D020F65D29E4A697002790F6 /* BurrowNetworkExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = D020F65329E4A697002790F6 /* BurrowNetworkExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
||||||
D05B9F7629E39EEC008CB1F9 /* BurrowApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = D05B9F7529E39EEC008CB1F9 /* BurrowApp.swift */; };
|
D05B9F7629E39EEC008CB1F9 /* BurrowApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = D05B9F7529E39EEC008CB1F9 /* BurrowApp.swift */; };
|
||||||
|
|
@ -71,6 +72,7 @@
|
||||||
isa = PBXFrameworksBuildPhase;
|
isa = PBXFrameworksBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
|
43E50D6D29FA050600BD2280 /* FluidMenuBarExtra in Frameworks */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
};
|
};
|
||||||
|
|
@ -168,6 +170,9 @@
|
||||||
D020F65C29E4A697002790F6 /* PBXTargetDependency */,
|
D020F65C29E4A697002790F6 /* PBXTargetDependency */,
|
||||||
);
|
);
|
||||||
name = Burrow;
|
name = Burrow;
|
||||||
|
packageProductDependencies = (
|
||||||
|
43E50D6C29FA050600BD2280 /* FluidMenuBarExtra */,
|
||||||
|
);
|
||||||
productName = Burrow;
|
productName = Burrow;
|
||||||
productReference = D05B9F7229E39EEC008CB1F9 /* Burrow.app */;
|
productReference = D05B9F7229E39EEC008CB1F9 /* Burrow.app */;
|
||||||
productType = "com.apple.product-type.application";
|
productType = "com.apple.product-type.application";
|
||||||
|
|
@ -199,6 +204,9 @@
|
||||||
Base,
|
Base,
|
||||||
);
|
);
|
||||||
mainGroup = D05B9F6929E39EEC008CB1F9;
|
mainGroup = D05B9F6929E39EEC008CB1F9;
|
||||||
|
packageReferences = (
|
||||||
|
43E50D6B29FA050600BD2280 /* XCRemoteSwiftPackageReference "fluid-menu-bar-extra" */,
|
||||||
|
);
|
||||||
productRefGroup = D05B9F7329E39EEC008CB1F9 /* Products */;
|
productRefGroup = D05B9F7329E39EEC008CB1F9 /* Products */;
|
||||||
projectDirPath = "";
|
projectDirPath = "";
|
||||||
projectRoot = "";
|
projectRoot = "";
|
||||||
|
|
@ -260,6 +268,7 @@
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
baseConfigurationReference = D020F66229E4A6E5002790F6 /* NetworkExtension.xcconfig */;
|
baseConfigurationReference = D020F66229E4A6E5002790F6 /* NetworkExtension.xcconfig */;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
|
DEVELOPMENT_TEAM = 2H4LMN3ZLG;
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
};
|
};
|
||||||
|
|
@ -267,6 +276,7 @@
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
baseConfigurationReference = D020F66229E4A6E5002790F6 /* NetworkExtension.xcconfig */;
|
baseConfigurationReference = D020F66229E4A6E5002790F6 /* NetworkExtension.xcconfig */;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
|
DEVELOPMENT_TEAM = 2H4LMN3ZLG;
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
|
|
@ -288,6 +298,8 @@
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
baseConfigurationReference = D020F64929E4A34B002790F6 /* Burrow.xcconfig */;
|
baseConfigurationReference = D020F64929E4A34B002790F6 /* Burrow.xcconfig */;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
|
DEVELOPMENT_TEAM = 2H4LMN3ZLG;
|
||||||
|
MACOSX_DEPLOYMENT_TARGET = 13.0;
|
||||||
};
|
};
|
||||||
name = Debug;
|
name = Debug;
|
||||||
};
|
};
|
||||||
|
|
@ -295,6 +307,8 @@
|
||||||
isa = XCBuildConfiguration;
|
isa = XCBuildConfiguration;
|
||||||
baseConfigurationReference = D020F64929E4A34B002790F6 /* Burrow.xcconfig */;
|
baseConfigurationReference = D020F64929E4A34B002790F6 /* Burrow.xcconfig */;
|
||||||
buildSettings = {
|
buildSettings = {
|
||||||
|
DEVELOPMENT_TEAM = 2H4LMN3ZLG;
|
||||||
|
MACOSX_DEPLOYMENT_TARGET = 13.0;
|
||||||
};
|
};
|
||||||
name = Release;
|
name = Release;
|
||||||
};
|
};
|
||||||
|
|
@ -329,6 +343,25 @@
|
||||||
defaultConfigurationName = Release;
|
defaultConfigurationName = Release;
|
||||||
};
|
};
|
||||||
/* End XCConfigurationList section */
|
/* End XCConfigurationList section */
|
||||||
|
|
||||||
|
/* Begin XCRemoteSwiftPackageReference section */
|
||||||
|
43E50D6B29FA050600BD2280 /* XCRemoteSwiftPackageReference "fluid-menu-bar-extra" */ = {
|
||||||
|
isa = XCRemoteSwiftPackageReference;
|
||||||
|
repositoryURL = "https://github.com/lfroms/fluid-menu-bar-extra.git";
|
||||||
|
requirement = {
|
||||||
|
branch = main;
|
||||||
|
kind = branch;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/* End XCRemoteSwiftPackageReference section */
|
||||||
|
|
||||||
|
/* Begin XCSwiftPackageProductDependency section */
|
||||||
|
43E50D6C29FA050600BD2280 /* FluidMenuBarExtra */ = {
|
||||||
|
isa = XCSwiftPackageProductDependency;
|
||||||
|
package = 43E50D6B29FA050600BD2280 /* XCRemoteSwiftPackageReference "fluid-menu-bar-extra" */;
|
||||||
|
productName = FluidMenuBarExtra;
|
||||||
|
};
|
||||||
|
/* End XCSwiftPackageProductDependency section */
|
||||||
};
|
};
|
||||||
rootObject = D05B9F6A29E39EEC008CB1F9 /* Project object */;
|
rootObject = D05B9F6A29E39EEC008CB1F9 /* Project object */;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"pins" : [
|
||||||
|
{
|
||||||
|
"identity" : "fluid-menu-bar-extra",
|
||||||
|
"kind" : "remoteSourceControl",
|
||||||
|
"location" : "https://github.com/lfroms/fluid-menu-bar-extra.git",
|
||||||
|
"state" : {
|
||||||
|
"branch" : "main",
|
||||||
|
"revision" : "b8d41bc1c2609c3943c47d00fb539de38f90b817"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"version" : 2
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue