{"action":"created","comment":{"url":"https://api.github.com/repos/livecode/livecode-ide/pulls/comments/54863259","id":54863259,"diff_hunk":"@@ -0,0 +1,610 @@\n+﻿script \"startCenterBehavior\"\n+constant kAllSocialMedia = \"facebook,twitter,github,linkedin,youtube,stackoverflow\"\n+constant kSocialMedia = \"github,stackoverflow,youtube,facebook,twitter,linkedin\"\n+\n+on openStack\n+   ## Set up the Start Center UI   \n+   \n+   ## Logo\n+   logoInitialise\n+   \n+   ## Social Media\n+   socialMediaInitialise\n+   socialMediaSet\n+   \n+   ## Recent Files\n+   recentFilesInitialise\n+   recentFilesSet\n+   set the dgHilitedLine of group \"recentFiles\" to 1\n+   \n+   ## Tiles\n+   tilesInitialise\n+   \n+   ## First Run Controls\n+   set the backgroundColor of button \"startTour\" to uiColor(\"edition\")\n+   set the filename of image \"firstRunImage\" of group \"firstRun\" to resourcesPath(\"images/firstRunImage.PNG\")\n+   \n+   ## Set folder icon\n+   set the iconColor of widget \"openIcon\" to uiColor(\"dark grey\")\n+   set the iconPathPreset of widget \"openIcon\" to \"folder open alt\"\n+   \n+   ## Show the banner\n+   --bannerInitialise\n+   \n+   ## Show at startup preference\n+   set the iconColor of widget \"startupCheckbox\" to uiColor(\"dark grey\")\n+   if revIDEGetPreference(\"cStartPageShow\") is true then\n+      set the iconPathPreset of widget \"startupCheckbox\" to \"lc-checkbox-checked\"\n+   else\n+      set the iconPathPreset of widget \"startupCheckbox\" to \"lc-checkbox-unchecked\"\n+   end if\n+   \n+   ## First run\n+   if revIDEGetPreference(\"StartCenterClassic\") is true then\n+      ## Not first run\n+      hide group \"firstRun\"\n+      show group\"topPanel\"\n+      --show group \"tiles\"\n+      set the top of group \"recentFiles\" to 0\n+   else\n+      ## First run\n+      hide group \"banner\"\n+      hide group \"topPanel\"\n+      --hide group \"tiles\"\n+      \n+      set the top of group \"recentFiles\" to 0\n+      \n+      set the layer of group \"firstRun\" to top\n+      show group \"firstRun\"\n+   end if\n+end openStack\n+\n+on ideNewStack\n+   startCenterClose\n+end ideNewStack\n+\n+on ideOpenStack pTarget\n+   if the short name of the owner of pTarget is not the short name of me then\n+      startCenterClose\n+   end if\n+end ideOpenStack\n+\n+command startCenterClose\n+   close me\n+end startCenterClose\n+\n+command logoInitialise\n+   ## Set the logo to the correct logo for the version\n+   set the iconPathPreset of widget \"logo\" of me to \"lc-logo\"\n+   set the iconColor of widget \"logo\" of me to uiColor(\"logo\")\n+end logoInitialise\n+\n+command socialMediaInitialise   \n+   ## Set the images\n+   repeat for each item tMedia in kAllSocialMedia\n+      hide widget tMedia of group \"socialMedia\"\n+      set the iconPathPreset of widget tMedia of group \"socialMedia\" to (\"lc-\" & tMedia)\n+      set the iconColor of widget tMedia of group \"socialMedia\" to uiColor(tMedia)\n+      set the fillrule of widget tMedia of group \"socialMedia\" to \"even odd\"\n+      set the blendLevel of widget tMedia of group \"socialMedia\" to 50\n+   end repeat\n+end socialMediaInitialise\n+\n+command socialMediaSet\n+   local tCenterLoc, tMediaCount, tPadding, tWidth, tTotalWidth, tLeft\n+   \n+   ## Show the chosen social media\n+   put item 1 of the loc of group \"socialMedia\" into tCenterLoc\n+   put the number of items in kSocialMedia into tMediaCount\n+   put 20 into tPadding\n+   put 20 into tWidth\n+   \n+   put (tWidth * tMediaCount) + (tMediaCount - 1) * tPadding into tTotalWidth\n+   put tCenterLoc - round(tTotalWidth / 2) into tLeft\n+   \n+   repeat with x = 1 to tMediaCount\n+      show widget (item x of kSocialMedia)\n+      set the left of widget (item x of kSocialMedia) to tLeft\n+      add tWidth + tPadding to tLeft\n+   end repeat\n+end socialMediaSet\n+\n+command socialMediaHilite pName, pValue\n+   if pValue is true then\n+      set the blendLevel of widget pName of group \"socialMedia\" to 0\n+   else\n+      set the blendLevel of widget pName of group \"socialMedia\" to 50\n+   end if\n+end socialMediaHilite\n+\n+command socialMediaUniliteAll\n+   repeat with x = 1 to the number of widgets of group \"socialMedia\"\n+       set the blendLevel of widget x of group \"socialMedia\" to 50\n+   end repeat\n+end socialMediaUniliteAll","path":"Toolset/palettes/start center/revStartCenterBehavior.livecodescript","position":124,"original_position":124,"commit_id":"91e5fa376f13ce3ab72903df72b72b8e0e58da6d","original_commit_id":"91e5fa376f13ce3ab72903df72b72b8e0e58da6d","user":{"login":"peter-b","id":47528,"avatar_url":"https://avatars.githubusercontent.com/u/47528?v=3","gravatar_id":"","url":"https://api.github.com/users/peter-b","html_url":"https://github.com/peter-b","followers_url":"https://api.github.com/users/peter-b/followers","following_url":"https://api.github.com/users/peter-b/following{/other_user}","gists_url":"https://api.github.com/users/peter-b/gists{/gist_id}","starred_url":"https://api.github.com/users/peter-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peter-b/subscriptions","organizations_url":"https://api.github.com/users/peter-b/orgs","repos_url":"https://api.github.com/users/peter-b/repos","events_url":"https://api.github.com/users/peter-b/events{/privacy}","received_events_url":"https://api.github.com/users/peter-b/received_events","type":"User","site_admin":false},"body":"@runrevelanor Should this handler be called `socialMediaUnhiliteAll` with an \"h\"?","created_at":"2016-03-03T10:44:14Z","updated_at":"2016-03-03T10:44:14Z","html_url":"https://github.com/livecode/livecode-ide/pull/960#discussion_r54863259","pull_request_url":"https://api.github.com/repos/livecode/livecode-ide/pulls/960","_links":{"self":{"href":"https://api.github.com/repos/livecode/livecode-ide/pulls/comments/54863259"},"html":{"href":"https://github.com/livecode/livecode-ide/pull/960#discussion_r54863259"},"pull_request":{"href":"https://api.github.com/repos/livecode/livecode-ide/pulls/960"}}},"pull_request":{"url":"https://api.github.com/repos/livecode/livecode-ide/pulls/960","id":61533326,"html_url":"https://github.com/livecode/livecode-ide/pull/960","diff_url":"https://github.com/livecode/livecode-ide/pull/960.diff","patch_url":"https://github.com/livecode/livecode-ide/pull/960.patch","issue_url":"https://api.github.com/repos/livecode/livecode-ide/issues/960","number":960,"state":"open","locked":false,"title":"[[ Start Center 8 ]]  Replace the Start Center for LiveCode 8","user":{"login":"runrevelanor","id":3931397,"avatar_url":"https://avatars.githubusercontent.com/u/3931397?v=3","gravatar_id":"","url":"https://api.github.com/users/runrevelanor","html_url":"https://github.com/runrevelanor","followers_url":"https://api.github.com/users/runrevelanor/followers","following_url":"https://api.github.com/users/runrevelanor/following{/other_user}","gists_url":"https://api.github.com/users/runrevelanor/gists{/gist_id}","starred_url":"https://api.github.com/users/runrevelanor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runrevelanor/subscriptions","organizations_url":"https://api.github.com/users/runrevelanor/orgs","repos_url":"https://api.github.com/users/runrevelanor/repos","events_url":"https://api.github.com/users/runrevelanor/events{/privacy}","received_events_url":"https://api.github.com/users/runrevelanor/received_events","type":"User","site_admin":false},"body":"The Start Center includes\r\n\r\n- New First Run Experience\r\n- Access to Recent Files\r\n- Access to Resources\r\n- Option to create new stacks from a list of defaults\r\n\r\nThe Start Center makes use of the tile widget","created_at":"2016-03-03T09:46:33Z","updated_at":"2016-03-03T10:44:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d19d9eb0cc257272af995ae03ffb5256b9daf81","assignee":null,"milestone":{"url":"https://api.github.com/repos/livecode/livecode-ide/milestones/39","html_url":"https://github.com/livecode/livecode-ide/milestones/8.0.0-freeze","labels_url":"https://api.github.com/repos/livecode/livecode-ide/milestones/39/labels","id":1561175,"number":39,"title":"8.0.0-freeze","description":"","creator":{"login":"peter-b","id":47528,"avatar_url":"https://avatars.githubusercontent.com/u/47528?v=3","gravatar_id":"","url":"https://api.github.com/users/peter-b","html_url":"https://github.com/peter-b","followers_url":"https://api.github.com/users/peter-b/followers","following_url":"https://api.github.com/users/peter-b/following{/other_user}","gists_url":"https://api.github.com/users/peter-b/gists{/gist_id}","starred_url":"https://api.github.com/users/peter-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peter-b/subscriptions","organizations_url":"https://api.github.com/users/peter-b/orgs","repos_url":"https://api.github.com/users/peter-b/repos","events_url":"https://api.github.com/users/peter-b/events{/privacy}","received_events_url":"https://api.github.com/users/peter-b/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":4,"state":"open","created_at":"2016-02-03T14:31:21Z","updated_at":"2016-03-03T09:55:10Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/livecode/livecode-ide/pulls/960/commits","review_comments_url":"https://api.github.com/repos/livecode/livecode-ide/pulls/960/comments","review_comment_url":"https://api.github.com/repos/livecode/livecode-ide/pulls/comments{/number}","comments_url":"https://api.github.com/repos/livecode/livecode-ide/issues/960/comments","statuses_url":"https://api.github.com/repos/livecode/livecode-ide/statuses/91e5fa376f13ce3ab72903df72b72b8e0e58da6d","head":{"label":"livecode:feature-startCenterLC8","ref":"feature-startCenterLC8","sha":"91e5fa376f13ce3ab72903df72b72b8e0e58da6d","user":{"login":"livecode","id":3985749,"avatar_url":"https://avatars.githubusercontent.com/u/3985749?v=3","gravatar_id":"","url":"https://api.github.com/users/livecode","html_url":"https://github.com/livecode","followers_url":"https://api.github.com/users/livecode/followers","following_url":"https://api.github.com/users/livecode/following{/other_user}","gists_url":"https://api.github.com/users/livecode/gists{/gist_id}","starred_url":"https://api.github.com/users/livecode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livecode/subscriptions","organizations_url":"https://api.github.com/users/livecode/orgs","repos_url":"https://api.github.com/users/livecode/repos","events_url":"https://api.github.com/users/livecode/events{/privacy}","received_events_url":"https://api.github.com/users/livecode/received_events","type":"Organization","site_admin":false},"repo":{"id":9334267,"name":"livecode-ide","full_name":"livecode/livecode-ide","owner":{"login":"livecode","id":3985749,"avatar_url":"https://avatars.githubusercontent.com/u/3985749?v=3","gravatar_id":"","url":"https://api.github.com/users/livecode","html_url":"https://github.com/livecode","followers_url":"https://api.github.com/users/livecode/followers","following_url":"https://api.github.com/users/livecode/following{/other_user}","gists_url":"https://api.github.com/users/livecode/gists{/gist_id}","starred_url":"https://api.github.com/users/livecode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livecode/subscriptions","organizations_url":"https://api.github.com/users/livecode/orgs","repos_url":"https://api.github.com/users/livecode/repos","events_url":"https://api.github.com/users/livecode/events{/privacy}","received_events_url":"https://api.github.com/users/livecode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/livecode/livecode-ide","description":"LiveCode cross-platform development environment (IDE)","fork":false,"url":"https://api.github.com/repos/livecode/livecode-ide","forks_url":"https://api.github.com/repos/livecode/livecode-ide/forks","keys_url":"https://api.github.com/repos/livecode/livecode-ide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/livecode/livecode-ide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/livecode/livecode-ide/teams","hooks_url":"https://api.github.com/repos/livecode/livecode-ide/hooks","issue_events_url":"https://api.github.com/repos/livecode/livecode-ide/issues/events{/number}","events_url":"https://api.github.com/repos/livecode/livecode-ide/events","assignees_url":"https://api.github.com/repos/livecode/livecode-ide/assignees{/user}","branches_url":"https://api.github.com/repos/livecode/livecode-ide/branches{/branch}","tags_url":"https://api.github.com/repos/livecode/livecode-ide/tags","blobs_url":"https://api.github.com/repos/livecode/livecode-ide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/livecode/livecode-ide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/livecode/livecode-ide/git/refs{/sha}","trees_url":"https://api.github.com/repos/livecode/livecode-ide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/livecode/livecode-ide/statuses/{sha}","languages_url":"https://api.github.com/repos/livecode/livecode-ide/languages","stargazers_url":"https://api.github.com/repos/livecode/livecode-ide/stargazers","contributors_url":"https://api.github.com/repos/livecode/livecode-ide/contributors","subscribers_url":"https://api.github.com/repos/livecode/livecode-ide/subscribers","subscription_url":"https://api.github.com/repos/livecode/livecode-ide/subscription","commits_url":"https://api.github.com/repos/livecode/livecode-ide/commits{/sha}","git_commits_url":"https://api.github.com/repos/livecode/livecode-ide/git/commits{/sha}","comments_url":"https://api.github.com/repos/livecode/livecode-ide/comments{/number}","issue_comment_url":"https://api.github.com/repos/livecode/livecode-ide/issues/comments{/number}","contents_url":"https://api.github.com/repos/livecode/livecode-ide/contents/{+path}","compare_url":"https://api.github.com/repos/livecode/livecode-ide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/livecode/livecode-ide/merges","archive_url":"https://api.github.com/repos/livecode/livecode-ide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/livecode/livecode-ide/downloads","issues_url":"https://api.github.com/repos/livecode/livecode-ide/issues{/number}","pulls_url":"https://api.github.com/repos/livecode/livecode-ide/pulls{/number}","milestones_url":"https://api.github.com/repos/livecode/livecode-ide/milestones{/number}","notifications_url":"https://api.github.com/repos/livecode/livecode-ide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/livecode/livecode-ide/labels{/name}","releases_url":"https://api.github.com/repos/livecode/livecode-ide/releases{/id}","deployments_url":"https://api.github.com/repos/livecode/livecode-ide/deployments","created_at":"2013-04-10T00:01:05Z","updated_at":"2016-02-16T09:45:59Z","pushed_at":"2016-03-03T10:18:36Z","git_url":"git://github.com/livecode/livecode-ide.git","ssh_url":"git@github.com:livecode/livecode-ide.git","clone_url":"https://github.com/livecode/livecode-ide.git","svn_url":"https://github.com/livecode/livecode-ide","homepage":"https://livecode.com/","size":87028,"stargazers_count":12,"watchers_count":12,"language":"Makefile","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":63,"forks":23,"open_issues":63,"watchers":12,"default_branch":"develop"}},"base":{"label":"livecode:develop","ref":"develop","sha":"2c22d4e4c4f2d8eb88707e1213a7c64734ab35ab","user":{"login":"livecode","id":3985749,"avatar_url":"https://avatars.githubusercontent.com/u/3985749?v=3","gravatar_id":"","url":"https://api.github.com/users/livecode","html_url":"https://github.com/livecode","followers_url":"https://api.github.com/users/livecode/followers","following_url":"https://api.github.com/users/livecode/following{/other_user}","gists_url":"https://api.github.com/users/livecode/gists{/gist_id}","starred_url":"https://api.github.com/users/livecode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livecode/subscriptions","organizations_url":"https://api.github.com/users/livecode/orgs","repos_url":"https://api.github.com/users/livecode/repos","events_url":"https://api.github.com/users/livecode/events{/privacy}","received_events_url":"https://api.github.com/users/livecode/received_events","type":"Organization","site_admin":false},"repo":{"id":9334267,"name":"livecode-ide","full_name":"livecode/livecode-ide","owner":{"login":"livecode","id":3985749,"avatar_url":"https://avatars.githubusercontent.com/u/3985749?v=3","gravatar_id":"","url":"https://api.github.com/users/livecode","html_url":"https://github.com/livecode","followers_url":"https://api.github.com/users/livecode/followers","following_url":"https://api.github.com/users/livecode/following{/other_user}","gists_url":"https://api.github.com/users/livecode/gists{/gist_id}","starred_url":"https://api.github.com/users/livecode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livecode/subscriptions","organizations_url":"https://api.github.com/users/livecode/orgs","repos_url":"https://api.github.com/users/livecode/repos","events_url":"https://api.github.com/users/livecode/events{/privacy}","received_events_url":"https://api.github.com/users/livecode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/livecode/livecode-ide","description":"LiveCode cross-platform development environment (IDE)","fork":false,"url":"https://api.github.com/repos/livecode/livecode-ide","forks_url":"https://api.github.com/repos/livecode/livecode-ide/forks","keys_url":"https://api.github.com/repos/livecode/livecode-ide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/livecode/livecode-ide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/livecode/livecode-ide/teams","hooks_url":"https://api.github.com/repos/livecode/livecode-ide/hooks","issue_events_url":"https://api.github.com/repos/livecode/livecode-ide/issues/events{/number}","events_url":"https://api.github.com/repos/livecode/livecode-ide/events","assignees_url":"https://api.github.com/repos/livecode/livecode-ide/assignees{/user}","branches_url":"https://api.github.com/repos/livecode/livecode-ide/branches{/branch}","tags_url":"https://api.github.com/repos/livecode/livecode-ide/tags","blobs_url":"https://api.github.com/repos/livecode/livecode-ide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/livecode/livecode-ide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/livecode/livecode-ide/git/refs{/sha}","trees_url":"https://api.github.com/repos/livecode/livecode-ide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/livecode/livecode-ide/statuses/{sha}","languages_url":"https://api.github.com/repos/livecode/livecode-ide/languages","stargazers_url":"https://api.github.com/repos/livecode/livecode-ide/stargazers","contributors_url":"https://api.github.com/repos/livecode/livecode-ide/contributors","subscribers_url":"https://api.github.com/repos/livecode/livecode-ide/subscribers","subscription_url":"https://api.github.com/repos/livecode/livecode-ide/subscription","commits_url":"https://api.github.com/repos/livecode/livecode-ide/commits{/sha}","git_commits_url":"https://api.github.com/repos/livecode/livecode-ide/git/commits{/sha}","comments_url":"https://api.github.com/repos/livecode/livecode-ide/comments{/number}","issue_comment_url":"https://api.github.com/repos/livecode/livecode-ide/issues/comments{/number}","contents_url":"https://api.github.com/repos/livecode/livecode-ide/contents/{+path}","compare_url":"https://api.github.com/repos/livecode/livecode-ide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/livecode/livecode-ide/merges","archive_url":"https://api.github.com/repos/livecode/livecode-ide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/livecode/livecode-ide/downloads","issues_url":"https://api.github.com/repos/livecode/livecode-ide/issues{/number}","pulls_url":"https://api.github.com/repos/livecode/livecode-ide/pulls{/number}","milestones_url":"https://api.github.com/repos/livecode/livecode-ide/milestones{/number}","notifications_url":"https://api.github.com/repos/livecode/livecode-ide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/livecode/livecode-ide/labels{/name}","releases_url":"https://api.github.com/repos/livecode/livecode-ide/releases{/id}","deployments_url":"https://api.github.com/repos/livecode/livecode-ide/deployments","created_at":"2013-04-10T00:01:05Z","updated_at":"2016-02-16T09:45:59Z","pushed_at":"2016-03-03T10:18:36Z","git_url":"git://github.com/livecode/livecode-ide.git","ssh_url":"git@github.com:livecode/livecode-ide.git","clone_url":"https://github.com/livecode/livecode-ide.git","svn_url":"https://github.com/livecode/livecode-ide","homepage":"https://livecode.com/","size":87028,"stargazers_count":12,"watchers_count":12,"language":"Makefile","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":63,"forks":23,"open_issues":63,"watchers":12,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/livecode/livecode-ide/pulls/960"},"html":{"href":"https://github.com/livecode/livecode-ide/pull/960"},"issue":{"href":"https://api.github.com/repos/livecode/livecode-ide/issues/960"},"comments":{"href":"https://api.github.com/repos/livecode/livecode-ide/issues/960/comments"},"review_comments":{"href":"https://api.github.com/repos/livecode/livecode-ide/pulls/960/comments"},"review_comment":{"href":"https://api.github.com/repos/livecode/livecode-ide/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/livecode/livecode-ide/pulls/960/commits"},"statuses":{"href":"https://api.github.com/repos/livecode/livecode-ide/statuses/91e5fa376f13ce3ab72903df72b72b8e0e58da6d"}}}}