2 Commits
Author SHA1 Message Date
acheronfail f843510abe version: 1.3.4 2019-03-04 10:42:15 +11:00
acheronfail 1e4d9f1f07 fix: swift uicolor formatters were producing nscolor strings
fixes #20
2019-03-04 10:30:35 +11:00
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.3.3</string>
<string>1.3.4</string>
<key>CFBundleVersion</key>
<string>13</string>
<string>14</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
+2 -2
View File
@@ -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)