Skip to content

Commit 7fc1981

Browse files
committed
Merge branch 'macos-14.tahoe-preparation'
2 parents fb02f32 + d3967ba commit 7fc1981

27 files changed

Lines changed: 835 additions & 181 deletions

.mise.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[tools]
2-
tuist = "4.50.2"
2+
tuist = "latest"
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" : "custom.brain.slash.svg",
9+
"idiom" : "universal"
10+
}
11+
]
12+
}

Cork/Assets.xcassets/custom.brain.slash.symbolset/custom.brain.slash.svg

Lines changed: 115 additions & 0 deletions
Loading
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" : "custom.shippingbox.badge.plus.svg",
9+
"idiom" : "universal"
10+
}
11+
]
12+
}

Cork/Assets.xcassets/custom.shippingbox.badge.plus.symbolset/custom.shippingbox.badge.plus.svg

Lines changed: 121 additions & 0 deletions
Loading
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" : "custom.spigot.badge.plus.svg",
9+
"idiom" : "universal"
10+
}
11+
]
12+
}

Cork/Assets.xcassets/custom.spigot.badge.plus.symbolset/custom.spigot.badge.plus.svg

Lines changed: 121 additions & 0 deletions
Loading

Cork/ContentView.swift

Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -65,38 +65,6 @@ struct ContentView: View, Sendable
6565
.disabled(self.outdatedPackagesTracker.isCheckingForPackageUpdates)
6666
}
6767

68-
@ViewBuilder private var addTapButton: some View
69-
{
70-
Button
71-
{
72-
appState.showSheet(ofType: .tapAddition)
73-
} label: {
74-
Label
75-
{
76-
Text("navigation.add-tap")
77-
} icon: {
78-
Image(systemName: "spigot")
79-
}
80-
}
81-
.help("navigation.add-tap.help")
82-
}
83-
84-
@ViewBuilder private var installPackageButton: some View
85-
{
86-
Button
87-
{
88-
appState.showSheet(ofType: .packageInstallation)
89-
} label: {
90-
Label
91-
{
92-
Text("navigation.install-package")
93-
} icon: {
94-
Image(systemName: "plus")
95-
}
96-
}
97-
.help("navigation.install-package.help")
98-
}
99-
10068
@ViewBuilder private var performMaintenanceButton: some View
10169
{
10270
Button
@@ -158,17 +126,17 @@ struct ContentView: View, Sendable
158126

159127
ToolbarItem(id: "upgradePackages", placement: .primaryAction)
160128
{
161-
self.upgradePackagesButton
129+
UpgradePackagesButton(appState: appState)
162130
}
163131

164132
ToolbarItem(id: "addTap", placement: .primaryAction)
165133
{
166-
self.addTapButton
134+
AddTapButton(appState: appState)
167135
}
168136

169137
ToolbarItem(id: "installPackage", placement: .primaryAction)
170138
{
171-
self.installPackageButton
139+
InstallPackageButton(appState: appState)
172140
}
173141

174142
ToolbarItem(id: "maintenance", placement: .primaryAction)

Cork/CorkApp.swift

Lines changed: 21 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ struct CorkApp: App
441441
SettingsView()
442442
.environment(appDelegate.appState)
443443
}
444+
.windowResizability(.contentSize)
444445

445446
// MARK: - Menu Bar Extra
446447

@@ -464,7 +465,7 @@ struct CorkApp: App
464465
{
465466
openWindow(id: .aboutWindowID)
466467
} label: {
467-
Text("navigation.about")
468+
Label("navigation.about", systemImage: "info.circle")
468469
}
469470
}
470471

@@ -478,12 +479,14 @@ struct CorkApp: App
478479
{
479480
NSWorkspace.shared.open(URL(string: "https://github.com/buresdv/Cork/issues/new?assignees=&labels=Bug&projects=&template=bug_report.yml")!)
480481
} label: {
481-
Text("action.report-bugs.git-hub")
482+
Label("action.report-bugs.git-hub", systemImage: "exclamationmark.bubble")
482483
}
483484

485+
/*
484486
ButtonThatOpensWebsites(
485487
websiteURL: URL(string: "https://forum.rikidar.eu/forumdisplay.php?fid=8")!, buttonText: "actiton.report-bugs.forum"
486488
)
489+
*/
487490

488491
/*
489492
Button
@@ -516,15 +519,15 @@ struct CorkApp: App
516519
{
517520
hasFinishedOnboarding = false
518521
} label: {
519-
Text("onboarding.start")
522+
Label("onboarding.start", systemImage: "person.crop.circle.badge.checkmark")
520523
}
521524
.disabled(!hasFinishedOnboarding)
522525

523526
Button
524527
{
525528
hasFinishedLicensingWorkflow = false
526529
} label: {
527-
Text("licensing.title")
530+
Label("licensing.title", systemImage: "checkmark.seal")
528531
}
529532

530533
Divider()
@@ -537,7 +540,7 @@ struct CorkApp: App
537540
{
538541
appDelegate.appState.navigationManager.dismissScreen()
539542
} label: {
540-
Text("action.go-to-status-page.menu-bar")
543+
Label("action.go-to-status-page.menu-bar", systemImage: "house")
541544
}
542545
.disabled(!appDelegate.appState.navigationManager.isAnyScreenOpened)
543546
Divider()
@@ -571,7 +574,7 @@ struct CorkApp: App
571574
}
572575
}
573576
} label: {
574-
Text("navigation.menu.import-export.export-brewfile")
577+
Label("navigation.menu.import-export.export-brewfile", systemImage: "square.and.arrow.up")
575578
}
576579
.asyncButtonStyle(.plainStyle)
577580

@@ -620,7 +623,7 @@ struct CorkApp: App
620623
}
621624
}
622625
} label: {
623-
Text("navigation.menu.import-export.import-brewfile")
626+
Label("navigation.menu.import-export.import-brewfile", systemImage: "square.and.arrow.down")
624627
}
625628
.asyncButtonStyle(.plainStyle)
626629
}
@@ -634,29 +637,19 @@ struct CorkApp: App
634637
{
635638
appDelegate.appState.isSearchFieldFocused = true
636639
} label: {
637-
Text("navigation.menu.search")
640+
Label("navigation.menu.search", systemImage: "magnifyingglass")
638641
}
639642
.keyboardShortcut("f", modifiers: .command)
640643
}
641644

642645
@ViewBuilder
643646
var packagesMenuBarSection: some View
644647
{
645-
Button
646-
{
647-
appDelegate.appState.showSheet(ofType: .packageInstallation)
648-
} label: {
649-
Text("navigation.menu.packages.install")
650-
}
651-
.keyboardShortcut("n")
648+
InstallPackageButton(appState: appDelegate.appState)
649+
.keyboardShortcut("n")
652650

653-
Button
654-
{
655-
appDelegate.appState.showSheet(ofType: .tapAddition)
656-
} label: {
657-
Text("navigation.menu.packages.add-tap")
658-
}
659-
.keyboardShortcut("n", modifiers: [.command, .option])
651+
AddTapButton(appState: appDelegate.appState)
652+
.keyboardShortcut("n", modifiers: [.command, .option])
660653

661654
Divider()
662655

@@ -681,30 +674,20 @@ struct CorkApp: App
681674
{
682675
openWindow(id: .servicesWindowID)
683676
} label: {
684-
Text("navigation.menu.services.open-window")
677+
Label("navigation.menu.services.open-window", systemImage: "square.stack.3d.down.right")
685678
}
686679
.keyboardShortcut("s", modifiers: .command)
687680
}
688681

689682
@ViewBuilder
690683
var maintenanceMenuBarSection: some View
691684
{
692-
Button
693-
{
694-
appDelegate.appState.showSheet(ofType: .maintenance(fastCacheDeletion: false))
695-
} label: {
696-
Text("navigation.menu.maintenance.perform")
697-
}
698-
.keyboardShortcut("m", modifiers: [.command, .shift])
685+
OpenMaintenanceSheetButton(appState: appDelegate.appState, labelType: .performMaintenance)
686+
.keyboardShortcut("m", modifiers: [.command, .shift])
699687

700-
Button
701-
{
702-
appDelegate.appState.showSheet(ofType: .maintenance(fastCacheDeletion: true))
703-
} label: {
704-
Text("navigation.menu.maintenance.delete-cached-downloads")
705-
}
706-
.keyboardShortcut("m", modifiers: [.command, .option])
707-
.disabled(cachedDownloadsTracker.cachedDownloadsSize == 0)
688+
DeleteCachedDownloadsButton(appState: appDelegate.appState)
689+
.keyboardShortcut("m", modifiers: [.command, .option])
690+
.disabled(cachedDownloadsTracker.cachedDownloadsSize == 0)
708691
}
709692

710693
@ViewBuilder

Cork/Localizable.xcstrings

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8426,6 +8426,7 @@
84268426
}
84278427
},
84288428
"actiton.report-bugs.forum" : {
8429+
"extractionState" : "stale",
84298430
"localizations" : {
84308431
"cs" : {
84318432
"stringUnit" : {
@@ -31847,6 +31848,7 @@
3184731848
}
3184831849
},
3184931850
"navigation.add-tap" : {
31851+
"extractionState" : "stale",
3185031852
"localizations" : {
3185131853
"cs" : {
3185231854
"stringUnit" : {
@@ -31935,6 +31937,7 @@
3193531937
}
3193631938
},
3193731939
"navigation.add-tap.help" : {
31940+
"extractionState" : "stale",
3193831941
"localizations" : {
3193931942
"cs" : {
3194031943
"stringUnit" : {
@@ -33143,6 +33146,7 @@
3314333146
}
3314433147
},
3314533148
"navigation.menu.maintenance.delete-cached-downloads" : {
33149+
"extractionState" : "stale",
3314633150
"localizations" : {
3314733151
"cs" : {
3314833152
"stringUnit" : {

0 commit comments

Comments
 (0)