Skip to content
This repository was archived by the owner on May 11, 2025. It is now read-only.

Commit 4304725

Browse files
committed
Add menu bar
1 parent 77da4d6 commit 4304725

17 files changed

Lines changed: 471 additions & 49 deletions

File tree

Whisky.xcodeproj/project.pbxproj

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@
5757
8C73E1342AF472FC00B6FB45 /* ProgramMenuView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8C73E1332AF472FC00B6FB45 /* ProgramMenuView.swift */; };
5858
8CB681E52AED7C6F0018D319 /* WhiskyKit in Resources */ = {isa = PBXBuildFile; fileRef = 8CB681E42AED7C6F0018D319 /* WhiskyKit */; };
5959
8CB681E72AED7CD00018D319 /* WhiskyKit in Frameworks */ = {isa = PBXBuildFile; productRef = 8CB681E62AED7CD00018D319 /* WhiskyKit */; };
60+
8CB681EA2AEDEDC20018D319 /* WhiskyBarView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8CB681E92AEDEDC20018D319 /* WhiskyBarView.swift */; };
61+
8CB681EC2AEDEDE70018D319 /* BottleBarView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8CB681EB2AEDEDE70018D319 /* BottleBarView.swift */; };
62+
8CB681EE2AEDEE2F0018D319 /* ProgramBarView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8CB681ED2AEDEE2F0018D319 /* ProgramBarView.swift */; };
63+
8CB681F12AEDF9620018D319 /* Bundle+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8CB681F02AEDF9620018D319 /* Bundle+Extensions.swift */; };
6064
AB66A8642A4195B10006D238 /* Rosetta2.swift in Sources */ = {isa = PBXBuildFile; fileRef = AB66A8632A4195B10006D238 /* Rosetta2.swift */; };
6165
DB696FC82AFAE5DA0037EB2F /* PinCreationView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DB696FC72AFAE5DA0037EB2F /* PinCreationView.swift */; };
6266
EB58FB552A499896002DC184 /* SemanticVersion in Frameworks */ = {isa = PBXBuildFile; productRef = EB58FB542A499896002DC184 /* SemanticVersion */; };
@@ -155,6 +159,10 @@
155159
6EFDF6652AAE303300EF622F /* Icons.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Icons.xcassets; sourceTree = "<group>"; };
156160
8C73E1332AF472FC00B6FB45 /* ProgramMenuView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProgramMenuView.swift; sourceTree = "<group>"; };
157161
8CB681E42AED7C6F0018D319 /* WhiskyKit */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = WhiskyKit; sourceTree = "<group>"; };
162+
8CB681E92AEDEDC20018D319 /* WhiskyBarView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WhiskyBarView.swift; sourceTree = "<group>"; };
163+
8CB681EB2AEDEDE70018D319 /* BottleBarView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BottleBarView.swift; sourceTree = "<group>"; };
164+
8CB681ED2AEDEE2F0018D319 /* ProgramBarView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProgramBarView.swift; sourceTree = "<group>"; };
165+
8CB681F02AEDF9620018D319 /* Bundle+Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Bundle+Extensions.swift"; sourceTree = "<group>"; };
158166
AB66A8632A4195B10006D238 /* Rosetta2.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Rosetta2.swift; sourceTree = "<group>"; };
159167
DB696FC72AFAE5DA0037EB2F /* PinCreationView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PinCreationView.swift; sourceTree = "<group>"; };
160168
EEA5A2452A31DD65008274AE /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
@@ -266,6 +274,7 @@
266274
6E40495429CCA19C006E3F1B /* Whisky */ = {
267275
isa = PBXGroup;
268276
children = (
277+
8CB681EF2AEDF9450018D319 /* Extensions */,
269278
EEA5A2452A31DD65008274AE /* AppDelegate.swift */,
270279
6E5197CF29D71FF900CF655E /* Models */,
271280
6E5197D029D7200700CF655E /* Utils */,
@@ -299,6 +308,7 @@
299308
6E5197CD29D71FCD00CF655E /* Views */ = {
300309
isa = PBXGroup;
301310
children = (
311+
8CB681E82AEDED9D0018D319 /* Menu Bar */,
302312
63FFDE822ADEFADF00178665 /* Common */,
303313
6E49E01F2AECB7D000009CAC /* Settings */,
304314
6E6C0CF02A419A5800356232 /* Setup */,
@@ -382,6 +392,24 @@
382392
path = WhiskyThumbnail;
383393
sourceTree = "<group>";
384394
};
395+
8CB681E82AEDED9D0018D319 /* Menu Bar */ = {
396+
isa = PBXGroup;
397+
children = (
398+
8CB681E92AEDEDC20018D319 /* WhiskyBarView.swift */,
399+
8CB681EB2AEDEDE70018D319 /* BottleBarView.swift */,
400+
8CB681ED2AEDEE2F0018D319 /* ProgramBarView.swift */,
401+
);
402+
path = "Menu Bar";
403+
sourceTree = "<group>";
404+
};
405+
8CB681EF2AEDF9450018D319 /* Extensions */ = {
406+
isa = PBXGroup;
407+
children = (
408+
8CB681F02AEDF9620018D319 /* Bundle+Extensions.swift */,
409+
);
410+
path = Extensions;
411+
sourceTree = "<group>";
412+
};
385413
/* End PBXGroup section */
386414

387415
/* Begin PBXNativeTarget section */
@@ -572,6 +600,7 @@
572600
buildActionMask = 2147483647;
573601
files = (
574602
EEA5A2462A31DD65008274AE /* AppDelegate.swift in Sources */,
603+
8CB681EE2AEDEE2F0018D319 /* ProgramBarView.swift in Sources */,
575604
6E70A4A12A9A280C007799E9 /* WhiskyCmd.swift in Sources */,
576605
6E40495829CCA19C006E3F1B /* ContentView.swift in Sources */,
577606
6EF557982A410599001A4F09 /* SetupView.swift in Sources */,
@@ -589,13 +618,16 @@
589618
6E17B6492AF4118F00831173 /* EnvironmentArgView.swift in Sources */,
590619
6E6C0CF42A419A7600356232 /* RosettaView.swift in Sources */,
591620
6E6C0CF82A419A8C00356232 /* GPTKInstallView.swift in Sources */,
621+
8CB681F12AEDF9620018D319 /* Bundle+Extensions.swift in Sources */,
592622
6E40498329CCA91B006E3F1B /* Bottle.swift in Sources */,
593623
6E621CEF2A5F631300C9AAB3 /* Winetricks.swift in Sources */,
624+
8CB681EA2AEDEDC20018D319 /* WhiskyBarView.swift in Sources */,
594625
6E17B6462AF3FDC100831173 /* PinView.swift in Sources */,
595626
6E064B1429DD331F00D9A2D2 /* SparkleView.swift in Sources */,
596627
6E40495629CCA19C006E3F1B /* WhiskyApp.swift in Sources */,
597628
8C73E1342AF472FC00B6FB45 /* ProgramMenuView.swift in Sources */,
598629
6E50D98329CD6066008C39F6 /* BottleVM.swift in Sources */,
630+
8CB681EC2AEDEDE70018D319 /* BottleBarView.swift in Sources */,
599631
6E6915452A3265BB0085BBB7 /* Logger.swift in Sources */,
600632
6E2B25C12B0E20F50084A67A /* PinAddView.swift in Sources */,
601633
6E49E0212AECB7DB00009CAC /* SettingsView.swift in Sources */,
@@ -778,6 +810,7 @@
778810
INFOPLIST_KEY_NSCameraUsageDescription = "A Windows application is trying to access the camera.";
779811
INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © Whisky";
780812
INFOPLIST_KEY_NSMicrophoneUsageDescription = "A Windows application is trying to access the microphone.";
813+
INFOPLIST_KEY_UIStatusBarStyle = "";
781814
LD_RUNPATH_SEARCH_PATHS = (
782815
"$(inherited)",
783816
"@executable_path/../Frameworks",

Whisky/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
3939
}
4040

4141
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
42-
return true
42+
return false
4343
}
4444

4545
private static var appUrl: URL? {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
}
6+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
},
6+
"symbols" : [
7+
{
8+
"filename" : "whisky.glass.svg",
9+
"idiom" : "universal"
10+
}
11+
]
12+
}

0 commit comments

Comments
 (0)