{"action":"created","comment":{"url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/pulls/comments/45607162","id":45607162,"diff_hunk":"@@ -10,6 +10,15 @@ namespace MaterialDesignThemes.Wpf\n {\n     public class PaletteHelper\n     {\n+        /// <summary>\n+        /// The primary swatch\n+        /// </summary>\n+        public Swatch Primary;","path":"MaterialDesignThemes.Wpf/PaletteHelper.cs","position":7,"original_position":7,"commit_id":"cea6ef61513423d8646b4e5d88f60087714f787a","original_commit_id":"cea6ef61513423d8646b4e5d88f60087714f787a","user":{"login":"ButchersBoy","id":658107,"avatar_url":"https://avatars.githubusercontent.com/u/658107?v=3","gravatar_id":"","url":"https://api.github.com/users/ButchersBoy","html_url":"https://github.com/ButchersBoy","followers_url":"https://api.github.com/users/ButchersBoy/followers","following_url":"https://api.github.com/users/ButchersBoy/following{/other_user}","gists_url":"https://api.github.com/users/ButchersBoy/gists{/gist_id}","starred_url":"https://api.github.com/users/ButchersBoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ButchersBoy/subscriptions","organizations_url":"https://api.github.com/users/ButchersBoy/orgs","repos_url":"https://api.github.com/users/ButchersBoy/repos","events_url":"https://api.github.com/users/ButchersBoy/events{/privacy}","received_events_url":"https://api.github.com/users/ButchersBoy/received_events","type":"User","site_admin":false},"body":"Do we need this?  I am wary of introducing state.  If we are introducing state then we have to look at this a lot more closely to make sure we are handling it correctly.  Which means scanning resources at startup etc which is a risky scenario for us to confidently say to people \"this is your current swatch\".\r\n\r\nSo we should not introduce state.","created_at":"2015-11-23T14:20:34Z","updated_at":"2015-11-23T14:20:34Z","html_url":"https://github.com/ButchersBoy/MaterialDesignInXamlToolkit/pull/134#discussion_r45607162","pull_request_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/pulls/134","_links":{"self":{"href":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/pulls/comments/45607162"},"html":{"href":"https://github.com/ButchersBoy/MaterialDesignInXamlToolkit/pull/134#discussion_r45607162"},"pull_request":{"href":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/pulls/134"}}},"pull_request":{"url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/pulls/134","id":51229856,"html_url":"https://github.com/ButchersBoy/MaterialDesignInXamlToolkit/pull/134","diff_url":"https://github.com/ButchersBoy/MaterialDesignInXamlToolkit/pull/134.diff","patch_url":"https://github.com/ButchersBoy/MaterialDesignInXamlToolkit/pull/134.patch","issue_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/issues/134","number":134,"state":"open","locked":false,"title":"Added DWM automatic color selection and few more small changes","user":{"login":"SuicSoft","id":13938848,"avatar_url":"https://avatars.githubusercontent.com/u/13938848?v=3","gravatar_id":"","url":"https://api.github.com/users/SuicSoft","html_url":"https://github.com/SuicSoft","followers_url":"https://api.github.com/users/SuicSoft/followers","following_url":"https://api.github.com/users/SuicSoft/following{/other_user}","gists_url":"https://api.github.com/users/SuicSoft/gists{/gist_id}","starred_url":"https://api.github.com/users/SuicSoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SuicSoft/subscriptions","organizations_url":"https://api.github.com/users/SuicSoft/orgs","repos_url":"https://api.github.com/users/SuicSoft/repos","events_url":"https://api.github.com/users/SuicSoft/events{/privacy}","received_events_url":"https://api.github.com/users/SuicSoft/received_events","type":"User","site_admin":false},"body":"I have added a feature to automatically generate primary or accent colors based on the DWM (Desktop  Window Manager) color using ```PaletteHelper.AutoPrimary``` or ```PaletteHelper.AutoAccent```. Also I made the palette selector disable the currently selected color like this (circled in green)\r\n![image](https://cloud.githubusercontent.com/assets/13938848/11273345/cf4b7e0c-8ef8-11e5-81b8-298b6e272557.png)\r\n\r\n\r\nI also added some useful methods and variables such as ```PaletteHelper.GetClosestSwatch(Color, bool)```\r\n\r\nThere is a small bug that the Primary or Accent generated from DWM is not disabled in the palette selector. This is a small bug and will not cause any crashes.\r\n\r\nAlso i had to install the Roslyn compiler NuGet package since I use Visual Studio 2013\r\n\r\nPS: Did you see GitHub's new UI","created_at":"2015-11-19T14:37:34Z","updated_at":"2015-11-23T14:20:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"260334a5791e810005f50b175ff5a150c3d67f04","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/pulls/134/commits","review_comments_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/pulls/134/comments","review_comment_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/issues/134/comments","statuses_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/statuses/cea6ef61513423d8646b4e5d88f60087714f787a","head":{"label":"SuicSoft:DWMPaletteHelper","ref":"DWMPaletteHelper","sha":"cea6ef61513423d8646b4e5d88f60087714f787a","user":{"login":"SuicSoft","id":13938848,"avatar_url":"https://avatars.githubusercontent.com/u/13938848?v=3","gravatar_id":"","url":"https://api.github.com/users/SuicSoft","html_url":"https://github.com/SuicSoft","followers_url":"https://api.github.com/users/SuicSoft/followers","following_url":"https://api.github.com/users/SuicSoft/following{/other_user}","gists_url":"https://api.github.com/users/SuicSoft/gists{/gist_id}","starred_url":"https://api.github.com/users/SuicSoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SuicSoft/subscriptions","organizations_url":"https://api.github.com/users/SuicSoft/orgs","repos_url":"https://api.github.com/users/SuicSoft/repos","events_url":"https://api.github.com/users/SuicSoft/events{/privacy}","received_events_url":"https://api.github.com/users/SuicSoft/received_events","type":"User","site_admin":false},"repo":{"id":46478140,"name":"MaterialDesignInXamlToolkit","full_name":"SuicSoft/MaterialDesignInXamlToolkit","owner":{"login":"SuicSoft","id":13938848,"avatar_url":"https://avatars.githubusercontent.com/u/13938848?v=3","gravatar_id":"","url":"https://api.github.com/users/SuicSoft","html_url":"https://github.com/SuicSoft","followers_url":"https://api.github.com/users/SuicSoft/followers","following_url":"https://api.github.com/users/SuicSoft/following{/other_user}","gists_url":"https://api.github.com/users/SuicSoft/gists{/gist_id}","starred_url":"https://api.github.com/users/SuicSoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SuicSoft/subscriptions","organizations_url":"https://api.github.com/users/SuicSoft/orgs","repos_url":"https://api.github.com/users/SuicSoft/repos","events_url":"https://api.github.com/users/SuicSoft/events{/privacy}","received_events_url":"https://api.github.com/users/SuicSoft/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SuicSoft/MaterialDesignInXamlToolkit","description":"Google Material Design in XAML & WPF, for C# & VB.Net","fork":true,"url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit","forks_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/forks","keys_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/teams","hooks_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/hooks","issue_events_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/issues/events{/number}","events_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/events","assignees_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/assignees{/user}","branches_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/branches{/branch}","tags_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/tags","blobs_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/statuses/{sha}","languages_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/languages","stargazers_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/stargazers","contributors_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/contributors","subscribers_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/subscribers","subscription_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/subscription","commits_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/contents/{+path}","compare_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/merges","archive_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/downloads","issues_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/issues{/number}","pulls_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/pulls{/number}","milestones_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/milestones{/number}","notifications_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/labels{/name}","releases_url":"https://api.github.com/repos/SuicSoft/MaterialDesignInXamlToolkit/releases{/id}","created_at":"2015-11-19T08:22:02Z","updated_at":"2015-11-19T08:22:14Z","pushed_at":"2015-11-22T13:56:23Z","git_url":"git://github.com/SuicSoft/MaterialDesignInXamlToolkit.git","ssh_url":"git@github.com:SuicSoft/MaterialDesignInXamlToolkit.git","clone_url":"https://github.com/SuicSoft/MaterialDesignInXamlToolkit.git","svn_url":"https://github.com/SuicSoft/MaterialDesignInXamlToolkit","homepage":"http://materialdesigninxaml.net","size":12266,"stargazers_count":0,"watchers_count":0,"language":"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":"ButchersBoy:master","ref":"master","sha":"7c514b671cfe2ae42e8b9bf77cb98f2cde19b6a5","user":{"login":"ButchersBoy","id":658107,"avatar_url":"https://avatars.githubusercontent.com/u/658107?v=3","gravatar_id":"","url":"https://api.github.com/users/ButchersBoy","html_url":"https://github.com/ButchersBoy","followers_url":"https://api.github.com/users/ButchersBoy/followers","following_url":"https://api.github.com/users/ButchersBoy/following{/other_user}","gists_url":"https://api.github.com/users/ButchersBoy/gists{/gist_id}","starred_url":"https://api.github.com/users/ButchersBoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ButchersBoy/subscriptions","organizations_url":"https://api.github.com/users/ButchersBoy/orgs","repos_url":"https://api.github.com/users/ButchersBoy/repos","events_url":"https://api.github.com/users/ButchersBoy/events{/privacy}","received_events_url":"https://api.github.com/users/ButchersBoy/received_events","type":"User","site_admin":false},"repo":{"id":30474266,"name":"MaterialDesignInXamlToolkit","full_name":"ButchersBoy/MaterialDesignInXamlToolkit","owner":{"login":"ButchersBoy","id":658107,"avatar_url":"https://avatars.githubusercontent.com/u/658107?v=3","gravatar_id":"","url":"https://api.github.com/users/ButchersBoy","html_url":"https://github.com/ButchersBoy","followers_url":"https://api.github.com/users/ButchersBoy/followers","following_url":"https://api.github.com/users/ButchersBoy/following{/other_user}","gists_url":"https://api.github.com/users/ButchersBoy/gists{/gist_id}","starred_url":"https://api.github.com/users/ButchersBoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ButchersBoy/subscriptions","organizations_url":"https://api.github.com/users/ButchersBoy/orgs","repos_url":"https://api.github.com/users/ButchersBoy/repos","events_url":"https://api.github.com/users/ButchersBoy/events{/privacy}","received_events_url":"https://api.github.com/users/ButchersBoy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ButchersBoy/MaterialDesignInXamlToolkit","description":"Google Material Design in XAML & WPF, for C# & VB.Net","fork":false,"url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit","forks_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/forks","keys_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/teams","hooks_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/hooks","issue_events_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/issues/events{/number}","events_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/events","assignees_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/assignees{/user}","branches_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/branches{/branch}","tags_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/tags","blobs_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/statuses/{sha}","languages_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/languages","stargazers_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/stargazers","contributors_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/contributors","subscribers_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/subscribers","subscription_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/subscription","commits_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/contents/{+path}","compare_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/merges","archive_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/downloads","issues_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/issues{/number}","pulls_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/pulls{/number}","milestones_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/milestones{/number}","notifications_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/labels{/name}","releases_url":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/releases{/id}","created_at":"2015-02-07T23:30:48Z","updated_at":"2015-11-23T13:24:53Z","pushed_at":"2015-11-23T11:12:40Z","git_url":"git://github.com/ButchersBoy/MaterialDesignInXamlToolkit.git","ssh_url":"git@github.com:ButchersBoy/MaterialDesignInXamlToolkit.git","clone_url":"https://github.com/ButchersBoy/MaterialDesignInXamlToolkit.git","svn_url":"https://github.com/ButchersBoy/MaterialDesignInXamlToolkit","homepage":"http://materialdesigninxaml.net","size":12651,"stargazers_count":666,"watchers_count":666,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":117,"mirror_url":null,"open_issues_count":10,"forks":117,"open_issues":10,"watchers":666,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/pulls/134"},"html":{"href":"https://github.com/ButchersBoy/MaterialDesignInXamlToolkit/pull/134"},"issue":{"href":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/issues/134"},"comments":{"href":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/issues/134/comments"},"review_comments":{"href":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/pulls/134/comments"},"review_comment":{"href":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/pulls/134/commits"},"statuses":{"href":"https://api.github.com/repos/ButchersBoy/MaterialDesignInXamlToolkit/statuses/cea6ef61513423d8646b4e5d88f60087714f787a"}}}}