Skip to content
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.

Commit

Permalink
add mojave support
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacXen committed Oct 26, 2019
1 parent f23481b commit 583027a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Pixie.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,8 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MARKETING_VERSION = 0.0.1;
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 0.1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.nyrra33.Pixie;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand All @@ -424,7 +425,8 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MARKETING_VERSION = 0.0.1;
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 0.1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.nyrra33.Pixie;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
Expand Down
1 change: 0 additions & 1 deletion Pixie/Controllers/MagnifierViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ extension MagnifierViewController: MagnifierViewDelegate {
}

case (false, true):
print(flippedLocation)
x = floor(flippedLocation.x, to: pixelWidth)
y = floor(flippedLocation.y, to: pixelWidth)

Expand Down
6 changes: 5 additions & 1 deletion Pixie/Views/RoundedTooltipsLabel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ class RoundedTooltipsLabel: NSView {
view.isSelectable = false
view.isBordered = false
view.lineBreakMode = .byTruncatingTail
view.font = NSFont.monospacedSystemFont(ofSize: NSFont.smallSystemFontSize, weight: .regular)
if #available(OSX 10.15, *) {
view.font = NSFont.monospacedSystemFont(ofSize: NSFont.smallSystemFontSize, weight: .regular)
} else {
view.font = NSFont(name: "Monaco", size: NSFont.smallSystemFontSize)
}
view.textColor = NSColor.textColor
view.backgroundColor = .clear
view.translatesAutoresizingMaskIntoConstraints = false
Expand Down

0 comments on commit 583027a

Please sign in to comment.