Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
02b4beacb3 | ||
|
|
8495bcde33 | ||
|
|
32d8f24286 | ||
|
|
f843510abe | ||
|
|
1e4d9f1f07 |
@@ -275,6 +275,7 @@
|
||||
developmentRegion = English;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
English,
|
||||
en,
|
||||
Base,
|
||||
);
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.3.3</string>
|
||||
<string>1.3.5</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>13</string>
|
||||
<string>15</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
<string>public.app-category.utilities</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
|
||||
@@ -37,7 +37,7 @@ class PPOverlayPreview: NSView, CALayerDelegate {
|
||||
|
||||
// Update the crosshair with the correct color, position and size.
|
||||
func updateCrosshair(_ pixelSize: CGFloat, _ middle: CGFloat, _ color: CGColor) {
|
||||
let pos: CGFloat = (pixelSize * middle) - (pixelSize / 2)
|
||||
let pos: CGFloat = (pixelSize * middle) - (pixelSize / 2) + 0.5
|
||||
let pixelRect = NSMakeRect(pos, pos, pixelSize, pixelSize)
|
||||
|
||||
crosshair.path = CGPath(rect: pixelRect, transform: nil)
|
||||
@@ -58,11 +58,11 @@ class PPOverlayPreview: NSView, CALayerDelegate {
|
||||
lastNumberOfCells = n
|
||||
|
||||
let path = NSBezierPath()
|
||||
let start = CGFloat(0)
|
||||
let end = CGFloat(n) * size
|
||||
let start = CGFloat(0) + 0.5
|
||||
let end = CGFloat(n) * size + 0.5
|
||||
|
||||
for i in 1..<n {
|
||||
let pos = CGFloat(i) * size
|
||||
let pos = CGFloat(i) * size + 0.5
|
||||
path.move(to: NSPoint(x: pos, y: start))
|
||||
path.line(to: NSPoint(x: pos, y: end))
|
||||
path.move(to: NSPoint(x: start, y: pos))
|
||||
|
||||
@@ -94,8 +94,8 @@ enum PPColor: String, CaseIterable {
|
||||
case .swiftNSColorCalibratedRgb: return self.formatAsDecimal(c, f("NSColor(calibratedRed: %f, green: %f, blue: %f, alpha: 1.000)"), .rgb)
|
||||
case .swiftNSColorDeviceHsb: return self.formatAsDecimal(c, f("NSColor(deviceHue: %f, saturation: %f, brightness: %f, alpha: 1.000)"), .hsb)
|
||||
case .swiftNSColorCalibratedHsb: return self.formatAsDecimal(c, f("NSColor(calibratedHue: %f, saturation: %f, brightness: %f, alpha: 1.000)"), .hsb)
|
||||
case .swiftUIColorRgb: return self.formatAsDecimal(c, f("NSColor(red: %f, green: %f, blue: %f, alpha: 1.000)"), .rgb)
|
||||
case .swiftUIColorHsb: return self.formatAsDecimal(c, f("NSColor(hue: %f, saturation: %f, brightness: %f, alpha: 1.000)"), .hsb)
|
||||
case .swiftUIColorRgb: return self.formatAsDecimal(c, f("UIColor(red: %f, green: %f, blue: %f, alpha: 1.000)"), .rgb)
|
||||
case .swiftUIColorHsb: return self.formatAsDecimal(c, f("UIColor(hue: %f, saturation: %f, brightness: %f, alpha: 1.000)"), .hsb)
|
||||
case .objCNSColorRgb: return self.formatAsDecimal(c, f("[NSColor colorWithSRGBRed: %f green: %f blue: %f alpha:1.000]"), .rgb)
|
||||
case .objCNSColorDeviceRgb: return self.formatAsDecimal(c, f("[NSColor colorWithDeviceRed: %f green: %f blue: %f alpha:1.000]"), .rgb)
|
||||
case .objCNSColorCalibratedRgb: return self.formatAsDecimal(c, f("[NSColor colorWithCalibratedRed: %f green: %f blue: %f alpha:1.000]"), .rgb)
|
||||
|
||||
Reference in New Issue
Block a user