{"action":"created","comment":{"url":"https://api.github.com/repos/TylerEich/Alfred-Extras/pulls/comments/29306881","id":29306881,"diff_hunk":"@@ -269,70 +269,137 @@ - (NSArray*) output {\n     swiftNs = @[];\n     swiftUi = @[];\n \n-    if (s == 0)\n-     {\n+    // Saturation == 0 -> Grayscale color\n+    if (s == 0) {\n+         // Objective-C NS Colors white\n          objCNs = [objCNs arrayByAddingObjectsFromArray:@[@{\n-                                                      @\"id\":@\"ns-calibrated-white\",\n-                                                      @\"description\":@\"NSColor • Calibrated White\",\n+                                                      @\"id\":@\"objc-ns-calibrated-white\",\n+                                                      @\"description\":@\"ObjC • NSColor • Calibrated White\",\n                                                       @\"argument\":[NSString stringWithFormat:@\"[NSColor colorWithCalibratedWhite:%.3g alpha:%.3g]\", v, ignoreAlpha ? 1.0 : a],\n                                                       @\"autocomplete\":[NSString stringWithFormat:@\"Color colorWithCalibratedWhite:%.3g alpha:%.3g]\", v, ignoreAlpha ? 1.0 : a]\n                                                       },\n                                                   @{\n-                                                      @\"id\":@\"ns-device-white\",\n-                                                      @\"description\":@\"NSColor • Device White\",\n+                                                      @\"id\":@\"obj-ns-device-white\",\n+                                                      @\"description\":@\"ObjC • NSColor • Device White\",\n                                                       @\"argument\":[NSString stringWithFormat:@\"[NSColor colorWithDeviceWhite:%.3g alpha:%.3g]\", v, ignoreAlpha ? 1.0 : a],\n                                                       @\"autocomplete\":[NSString stringWithFormat:@\"Color colorWithDeviceWhite:%.3g alpha:%.3g]\", v, ignoreAlpha ? 1.0 : a]\n                                                       }]];\n          \n+         // Objective-c NS Colors white\n          objCUi = [objCUi arrayByAddingObjectsFromArray:@[@{\n-                                                      @\"id\":@\"ui-white\",\n-                                                      @\"description\":@\"UIColor • White\",\n+                                                      @\"id\":@\"obj-ui-white\",\n+                                                      @\"description\":@\"ObjC • UIColor • White\",\n                                                       @\"argument\":[NSString stringWithFormat:@\"[UIColor colorWithWhite:%.3g alpha:%.3g]\", v, ignoreAlpha ? 1.0 : a],\n                                                       @\"autocomplete\":[NSString stringWithFormat:@\"Color colorWithWhite:%.3g alpha:%.3g]\", v, ignoreAlpha ? 1.0 : a]\n                                                       }]];\n          \n+         // Swift NS Colors white\n+         swiftNs = [swiftNs arrayByAddingObjectsFromArray:@[@{\n+                                                                @\"id\": @\"swift-ns-calibrated-white\",\n+                                                                @\"description\": @\"Swift • NSColor • Calibrated White\",\n+                                                                @\"argument\": [NSString stringWithFormat:@\"NSColor(calibratedWhite:%.3g alpha: %.3g\", v, ignoreAlpha ? 1.0 : a],\n+                                                                @\"autocomplete\": [NSString stringWithFormat:@\"NSColor(calibratedWhite:%.3g alpha: %.3g\", v, ignoreAlpha ? 1.0 : a]\n+                                                                },\n+                                                            @{\n+                                                                @\"id\": @\"swift-ns-device-white\",\n+                                                                @\"description\": @\"Swift • NSColor • Device White\",\n+                                                                @\"argument\": [NSString stringWithFormat:@\"NSColor(deviceWhite:%.3g alpha: %.3g\", v, ignoreAlpha ? 1.0 : a],\n+                                                                @\"autocomplete\": [NSString stringWithFormat:@\"NSColor(deviceWhite:%.3g alpha: %.3g\", v, ignoreAlpha ? 1.0 : a]\n+                                                                }]];\n+         \n+         // Swift UI Colors\n          swiftUi = [swiftUi arrayByAddingObjectsFromArray:@[@{\n-                                                                @\"id\":@\"swift-ns-calibrated-white\"\n-                                                                \n+                                                                @\"id\": @\"swift-ui-white\",\n+                                                                @\"description\": @\"Swift • UIColor • White\",\n+                                                                @\"argument\": [NSString stringWithFormat:@\"UIColor(white: %.3g alpha: %.3g]\", v, ignoreAlpha ? 1.0 : a],\n+                                                                @\"autocomplete\": [NSString stringWithFormat:@\"UIColor(white: %.3g alpha: %.3g]\", v, ignoreAlpha ? 1.0 : a]\n                                                                 }]];\n-     }\n+         \n+         \n+    }\n+    \n+    // Saturated colors -> No grayscale\n+    \n+    // Objective-C NSColors\n     objCNs = [objCNs arrayByAddingObjectsFromArray:@[@{\n-                                                 @\"id\":@\"ns-calibrated-rgb\",\n-                                                 @\"description\":@\"NSColor • Calibrated RGB\",\n+                                                 @\"id\":@\"objc-ns-calibrated-rgb\",\n+                                                 @\"description\":@\"Objc • NSColor • Calibrated RGB\",\n                                                  @\"argument\":[NSString stringWithFormat:@\"[NSColor colorWithCalibratedRed:%.3g green:%.3g blue:%.3g alpha:%.3g]\", r, g, b, ignoreAlpha ? 1.0 : a],\n                                                  @\"autocomplete\":[NSString stringWithFormat:@\"Color colorWithCalibratedRed:%.3g green:%.3g blue:%.3g alpha:%.3g]\", r, g, b, ignoreAlpha ? 1.0 : a]\n                                                  },\n                                              @{\n-                                                 @\"id\":@\"ns-calibrated-hsb\",\n-                                                 @\"description\":@\"NSColor • Calibrated HSB\",\n+                                                 @\"id\":@\"objc-ns-calibrated-hsb\",\n+                                                 @\"description\":@\"Objc • NSColor • Calibrated HSB\",","path":"Source/colors/colors/colors.m","position":79,"original_position":79,"commit_id":"97aea415519613fcf92137ec86c51befb902f5aa","original_commit_id":"97aea415519613fcf92137ec86c51befb902f5aa","user":{"login":"TylerEich","id":3460063,"avatar_url":"https://avatars.githubusercontent.com/u/3460063?v=3","gravatar_id":"","url":"https://api.github.com/users/TylerEich","html_url":"https://github.com/TylerEich","followers_url":"https://api.github.com/users/TylerEich/followers","following_url":"https://api.github.com/users/TylerEich/following{/other_user}","gists_url":"https://api.github.com/users/TylerEich/gists{/gist_id}","starred_url":"https://api.github.com/users/TylerEich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TylerEich/subscriptions","organizations_url":"https://api.github.com/users/TylerEich/orgs","repos_url":"https://api.github.com/users/TylerEich/repos","events_url":"https://api.github.com/users/TylerEich/events{/privacy}","received_events_url":"https://api.github.com/users/TylerEich/received_events","type":"User","site_admin":false},"body":"TYPO: `Objc` => `ObjC`","created_at":"2015-04-29T02:38:18Z","updated_at":"2015-04-29T02:38:18Z","html_url":"https://github.com/TylerEich/Alfred-Extras/pull/22#discussion_r29306881","pull_request_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/TylerEich/Alfred-Extras/pulls/comments/29306881"},"html":{"href":"https://github.com/TylerEich/Alfred-Extras/pull/22#discussion_r29306881"},"pull_request":{"href":"https://api.github.com/repos/TylerEich/Alfred-Extras/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/TylerEich/Alfred-Extras/pulls/22","id":34328808,"html_url":"https://github.com/TylerEich/Alfred-Extras/pull/22","diff_url":"https://github.com/TylerEich/Alfred-Extras/pull/22.diff","patch_url":"https://github.com/TylerEich/Alfred-Extras/pull/22.patch","issue_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/issues/22","number":22,"state":"open","locked":false,"title":"Swift generation","user":{"login":"thomasdegry","id":2844217,"avatar_url":"https://avatars.githubusercontent.com/u/2844217?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasdegry","html_url":"https://github.com/thomasdegry","followers_url":"https://api.github.com/users/thomasdegry/followers","following_url":"https://api.github.com/users/thomasdegry/following{/other_user}","gists_url":"https://api.github.com/users/thomasdegry/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasdegry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasdegry/subscriptions","organizations_url":"https://api.github.com/users/thomasdegry/orgs","repos_url":"https://api.github.com/users/thomasdegry/repos","events_url":"https://api.github.com/users/thomasdegry/events{/privacy}","received_events_url":"https://api.github.com/users/thomasdegry/received_events","type":"User","site_admin":false},"body":"Not entirely sure how to do the Alfred workflow generation but tested locally and works here! So I guess last step is replace the colors binary in the workflow with the new one.\r\n\r\n![screen shot 2015-04-28 at 9 10 24 pm](https://cloud.githubusercontent.com/assets/2844217/7383787/02a376ba-edeb-11e4-859c-c63fc1db0854.png)\r\n","created_at":"2015-04-29T02:10:52Z","updated_at":"2015-04-29T02:38:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c84f2bc7dda2e2acebf56419bffca4202a734fa6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/pulls/22/commits","review_comments_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/pulls/22/comments","review_comment_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/issues/22/comments","statuses_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/statuses/97aea415519613fcf92137ec86c51befb902f5aa","head":{"label":"thomasdegry:colors-swift","ref":"colors-swift","sha":"97aea415519613fcf92137ec86c51befb902f5aa","user":{"login":"thomasdegry","id":2844217,"avatar_url":"https://avatars.githubusercontent.com/u/2844217?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasdegry","html_url":"https://github.com/thomasdegry","followers_url":"https://api.github.com/users/thomasdegry/followers","following_url":"https://api.github.com/users/thomasdegry/following{/other_user}","gists_url":"https://api.github.com/users/thomasdegry/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasdegry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasdegry/subscriptions","organizations_url":"https://api.github.com/users/thomasdegry/orgs","repos_url":"https://api.github.com/users/thomasdegry/repos","events_url":"https://api.github.com/users/thomasdegry/events{/privacy}","received_events_url":"https://api.github.com/users/thomasdegry/received_events","type":"User","site_admin":false},"repo":{"id":34767031,"name":"Alfred-Extras","full_name":"thomasdegry/Alfred-Extras","owner":{"login":"thomasdegry","id":2844217,"avatar_url":"https://avatars.githubusercontent.com/u/2844217?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasdegry","html_url":"https://github.com/thomasdegry","followers_url":"https://api.github.com/users/thomasdegry/followers","following_url":"https://api.github.com/users/thomasdegry/following{/other_user}","gists_url":"https://api.github.com/users/thomasdegry/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasdegry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasdegry/subscriptions","organizations_url":"https://api.github.com/users/thomasdegry/orgs","repos_url":"https://api.github.com/users/thomasdegry/repos","events_url":"https://api.github.com/users/thomasdegry/events{/privacy}","received_events_url":"https://api.github.com/users/thomasdegry/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thomasdegry/Alfred-Extras","description":"Workflows for Alfred","fork":true,"url":"https://api.github.com/repos/thomasdegry/Alfred-Extras","forks_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/forks","keys_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/teams","hooks_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/hooks","issue_events_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/issues/events{/number}","events_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/events","assignees_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/assignees{/user}","branches_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/branches{/branch}","tags_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/tags","blobs_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/git/refs{/sha}","trees_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/statuses/{sha}","languages_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/languages","stargazers_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/stargazers","contributors_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/contributors","subscribers_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/subscribers","subscription_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/subscription","commits_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/commits{/sha}","git_commits_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/git/commits{/sha}","comments_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/comments{/number}","issue_comment_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/issues/comments{/number}","contents_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/contents/{+path}","compare_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/merges","archive_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/downloads","issues_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/issues{/number}","pulls_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/pulls{/number}","milestones_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/milestones{/number}","notifications_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/labels{/name}","releases_url":"https://api.github.com/repos/thomasdegry/Alfred-Extras/releases{/id}","created_at":"2015-04-29T02:07:11Z","updated_at":"2015-04-29T02:07:12Z","pushed_at":"2015-04-29T02:09:02Z","git_url":"git://github.com/thomasdegry/Alfred-Extras.git","ssh_url":"git@github.com:thomasdegry/Alfred-Extras.git","clone_url":"https://github.com/thomasdegry/Alfred-Extras.git","svn_url":"https://github.com/thomasdegry/Alfred-Extras","homepage":"","size":6635,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"TylerEich:master","ref":"master","sha":"3ad1eef89cdccdb2ef6873a32cccd088f4146247","user":{"login":"TylerEich","id":3460063,"avatar_url":"https://avatars.githubusercontent.com/u/3460063?v=3","gravatar_id":"","url":"https://api.github.com/users/TylerEich","html_url":"https://github.com/TylerEich","followers_url":"https://api.github.com/users/TylerEich/followers","following_url":"https://api.github.com/users/TylerEich/following{/other_user}","gists_url":"https://api.github.com/users/TylerEich/gists{/gist_id}","starred_url":"https://api.github.com/users/TylerEich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TylerEich/subscriptions","organizations_url":"https://api.github.com/users/TylerEich/orgs","repos_url":"https://api.github.com/users/TylerEich/repos","events_url":"https://api.github.com/users/TylerEich/events{/privacy}","received_events_url":"https://api.github.com/users/TylerEich/received_events","type":"User","site_admin":false},"repo":{"id":9268808,"name":"Alfred-Extras","full_name":"TylerEich/Alfred-Extras","owner":{"login":"TylerEich","id":3460063,"avatar_url":"https://avatars.githubusercontent.com/u/3460063?v=3","gravatar_id":"","url":"https://api.github.com/users/TylerEich","html_url":"https://github.com/TylerEich","followers_url":"https://api.github.com/users/TylerEich/followers","following_url":"https://api.github.com/users/TylerEich/following{/other_user}","gists_url":"https://api.github.com/users/TylerEich/gists{/gist_id}","starred_url":"https://api.github.com/users/TylerEich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TylerEich/subscriptions","organizations_url":"https://api.github.com/users/TylerEich/orgs","repos_url":"https://api.github.com/users/TylerEich/repos","events_url":"https://api.github.com/users/TylerEich/events{/privacy}","received_events_url":"https://api.github.com/users/TylerEich/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TylerEich/Alfred-Extras","description":"Workflows for Alfred","fork":false,"url":"https://api.github.com/repos/TylerEich/Alfred-Extras","forks_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/forks","keys_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/teams","hooks_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/hooks","issue_events_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/issues/events{/number}","events_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/events","assignees_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/assignees{/user}","branches_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/branches{/branch}","tags_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/tags","blobs_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/git/refs{/sha}","trees_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/statuses/{sha}","languages_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/languages","stargazers_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/stargazers","contributors_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/contributors","subscribers_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/subscribers","subscription_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/subscription","commits_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/commits{/sha}","git_commits_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/git/commits{/sha}","comments_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/comments{/number}","issue_comment_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/issues/comments{/number}","contents_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/contents/{+path}","compare_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/merges","archive_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/downloads","issues_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/issues{/number}","pulls_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/pulls{/number}","milestones_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/milestones{/number}","notifications_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/labels{/name}","releases_url":"https://api.github.com/repos/TylerEich/Alfred-Extras/releases{/id}","created_at":"2013-04-07T00:26:59Z","updated_at":"2015-04-28T22:43:56Z","pushed_at":"2015-04-29T02:10:52Z","git_url":"git://github.com/TylerEich/Alfred-Extras.git","ssh_url":"git@github.com:TylerEich/Alfred-Extras.git","clone_url":"https://github.com/TylerEich/Alfred-Extras.git","svn_url":"https://github.com/TylerEich/Alfred-Extras","homepage":"","size":6635,"stargazers_count":90,"watchers_count":90,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":13,"mirror_url":null,"open_issues_count":9,"forks":13,"open_issues":9,"watchers":90,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TylerEich/Alfred-Extras/pulls/22"},"html":{"href":"https://github.com/TylerEich/Alfred-Extras/pull/22"},"issue":{"href":"https://api.github.com/repos/TylerEich/Alfred-Extras/issues/22"},"comments":{"href":"https://api.github.com/repos/TylerEich/Alfred-Extras/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/TylerEich/Alfred-Extras/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/TylerEich/Alfred-Extras/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TylerEich/Alfred-Extras/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/TylerEich/Alfred-Extras/statuses/97aea415519613fcf92137ec86c51befb902f5aa"}}}}