Skip to content

Commit

Permalink
0.0.15-beta1 (#93)
Browse files Browse the repository at this point in the history
* Added menu items, fixed broken link
* Tidied constants
* Updated version
  • Loading branch information
superhighfives authored Jan 28, 2023
1 parent 784ee46 commit da966b9
Show file tree
Hide file tree
Showing 13 changed files with 50 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Pika.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 31;
CURRENT_PROJECT_VERSION = 32;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"Pika/Preview Content\"";
DEVELOPMENT_TEAM = TGHU37N6EX;
Expand All @@ -651,7 +651,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.15;
MARKETING_VERSION = 0.0.14;
MARKETING_VERSION = "0.0.15-beta1";
PRODUCT_BUNDLE_IDENTIFIER = com.superhighfives.Pika;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand All @@ -667,7 +667,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 31;
CURRENT_PROJECT_VERSION = 32;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"Pika/Preview Content\"";
DEVELOPMENT_TEAM = TGHU37N6EX;
Expand All @@ -681,7 +681,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.15;
MARKETING_VERSION = 0.0.14;
MARKETING_VERSION = "0.0.15-beta1";
PRODUCT_BUNDLE_IDENTIFIER = com.superhighfives.Pika;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand Down
1 change: 0 additions & 1 deletion Pika.xcodeproj/xcshareddata/xcschemes/Pika.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = "fr"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
10 changes: 10 additions & 0 deletions Pika/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,16 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {
SUUpdater.shared()?.checkForUpdates(self)
}

@IBAction func openWebsite(_: Any) {
let url = URL(string: PikaConstants.pikaWebsiteURL)!
NSWorkspace.shared.open(url)
}

@IBAction func openGitHubIssue(_: Any) {
let url = URL(string: PikaConstants.gitHubIssueURL)!
NSWorkspace.shared.open(url)
}

@IBAction func terminatePika(_: Any) {
NSApplication.shared.terminate(self)
}
Expand Down
10 changes: 8 additions & 2 deletions Pika/Assets/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,15 @@
<modifierMask key="keyEquivalentModifierMask"/>
<menu key="submenu" title="Help" systemMenu="help" id="F2S-fz-NVQ">
<items>
<menuItem title="Pika Website" enabled="NO" keyEquivalent="?" id="FKE-Sm-Kum">
<menuItem title="Pika Website" keyEquivalent="?" id="FKE-Sm-Kum">
<connections>
<action selector="openPreferencesWindow:" target="Voe-Tx-rLC" id="eot-8W-K41"/>
<action selector="openWebsite:" target="Voe-Tx-rLC" id="vQG-LA-1ix"/>
</connections>
</menuItem>
<menuItem title="Report Bug or Feedback" id="hxD-2G-mEq">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="openGitHubIssue:" target="Voe-Tx-rLC" id="7Ag-IO-qo8"/>
</connections>
</menuItem>
</items>
Expand Down
6 changes: 6 additions & 0 deletions Pika/Assets/de.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@
/* Preferences */
"menu.preferences" = "Einstellungen";

/* Pika Website */
"menu.website" = "Pika-Website";

/* Report Bug or Feedback */
"menu.issue" = "Fehler oder Feedback melden";

/* Quit */
"menu.quit" = "Beenden";

Expand Down
3 changes: 3 additions & 0 deletions Pika/Assets/de.lproj/Main.strings
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,6 @@

/* Class = "NSMenuItem"; title = "Copy foreground"; ObjectID = "x3v-GG-iWU"; */
"x3v-GG-iWU.title" = "Vordergrund kopieren";

/* Class = "NSMenuItem"; title = "Report Bug or Feedback"; ObjectID = "hxD-2G-mEq.title"; */
"hxD-2G-mEq.title" = "Fehler oder Feedback melden";
Binary file modified Pika/Assets/en.lproj/Localizable.strings
Binary file not shown.
3 changes: 3 additions & 0 deletions Pika/Assets/en.lproj/Main.strings
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,6 @@

/* Class = "NSMenuItem"; title = "Copy foreground"; ObjectID = "x3v-GG-iWU"; */
"x3v-GG-iWU.title" = "Copy foreground";

/* Class = "NSMenuItem"; title = "Report Bug or Feedback"; ObjectID = "hxD-2G-mEq.title"; */
"hxD-2G-mEq.title" = "Report Bug or Feedback";
Binary file modified Pika/Assets/fr.lproj/Localizable.strings
Binary file not shown.
3 changes: 3 additions & 0 deletions Pika/Assets/fr.lproj/Main.strings
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,6 @@

/* Class = "NSMenuItem"; title = "Copy foreground"; ObjectID = "x3v-GG-iWU"; */
"x3v-GG-iWU.title" = "Copier le premier plan";

/* Class = "NSMenuItem"; title = "Report Bug or Feedback"; ObjectID = "hxD-2G-mEq.title"; */
"hxD-2G-mEq.title" = "Signaler un bogue ou un commentaire";
7 changes: 7 additions & 0 deletions Pika/Constants/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ enum PikaConstants {
: "https://superhighfives.com/releases/pika"
}

static let pikaWebsiteURL = "https://superhighfives.com/pika"
static let gitHubRepoURL = "https://github.com/superhighfives/pika"
static let gitHubIssueURL = "https://github.com/superhighfives/pika/issues/new/choose"
static let charlieGleasonWebsiteURL = "https://charliegleason.com"

// Initial colors
static let initialColors = [
NSColor(r: 143.0, g: 15.0, b: 208.0),
Expand Down Expand Up @@ -73,6 +78,8 @@ enum PikaText {
static let textMenuAbout = NSLocalizedString("menu.about", comment: "About")
static let textMenuUpdates = NSLocalizedString("menu.updates", comment: "Check for updates")
static let textMenuPreferences = NSLocalizedString("menu.preferences", comment: "Preferences")
static let textMenuWebsite = NSLocalizedString("menu.website", comment: "Pika Website")
static let textMenuGitHubIssue = NSLocalizedString("menu.issue", comment: "Report Bug or Feedback")
static let textMenuQuit = NSLocalizedString("menu.quit", comment: "Quit Pika")

// Navigation
Expand Down
6 changes: 3 additions & 3 deletions Pika/Views/AboutView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ struct AboutView: View {
HStack(spacing: 20.0) {
LinkButton(
title: PikaText.textAboutWebsite,
link: "https://superhighfives.com/pika"
link: PikaConstants.pikaWebsiteURL
)
LinkButton(
title: PikaText.textAboutGitHub,
link: "https://github.com/superhighfives/pika"
link: PikaConstants.gitHubRepoURL
)
}

Expand All @@ -50,7 +50,7 @@ struct AboutView: View {
HStack(spacing: 5.0) {
IconImage(name: "hand.thumbsup.fill")
Text(PikaText.textAboutBy)
LinkButton(title: "Charlie Gleason", link: "https://charliegleason.com")
LinkButton(title: "Charlie Gleason", link: PikaConstants.charlieGleasonWebsiteURL)
}
}
.padding(.bottom, 20.0)
Expand Down
3 changes: 3 additions & 0 deletions Pika/Views/NavigationMenuItems.swift
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ struct NavigationMenuItems: View {
$0
}
}
Button(PikaText.textMenuGitHubIssue, action: {
NSApp.sendAction(#selector(AppDelegate.openGitHubIssue), to: nil, from: nil)
})
}

VStack {
Expand Down

0 comments on commit da966b9

Please sign in to comment.