{"action":"created","comment":{"url":"https://api.github.com/repos/syncthing/syncthing/pulls/comments/65171680","id":65171680,"diff_hunk":"@@ -780,6 +780,60 @@ angular.module('syncthing.core')\n             return 'info';\n         };\n \n+        $scope.syncthingStatus = function () {\n+            \n+            var deviceCount = $scope.devices.length;\n+            var syncCount = 0;\n+            var notifyCount = 0;\n+            var pauseCount = 0;\n+            \n+            //loop through all devices\n+            for (var i = 0; i < $scope.devices.length; i++) {\n+                var status = $scope.deviceStatus({\n+                    deviceID:$scope.devices[i].deviceID\n+                });\n+                switch (status) {\n+                    case 'syncing': syncCount++; break;\n+                    case 'unknown': notifyCount++; break;\n+                    case 'paused': pauseCount++; break;\n+                    case 'unused': deviceCount--; break;\n+                }\n+            }\n+\n+            //loop through all folders\n+            var folderListCache = $scope.folderList();\n+            for (var i = 0; i < folderListCache.length; i++) {\n+                var status = $scope.folderStatus(folderListCache[i]);\n+                switch (status) {\n+                    case 'syncing':\n+                    case 'scanning':     //possible?\n+                        syncCount++;\n+                        break;\n+                    case 'stopped':\n+                    case 'unknown':\n+                    case 'outofsync':\n+                    case 'error':        //possible?\n+                        notifyCount++;\n+                        break;\n+                }\n+            }\n+\n+            //notifications\n+            if ($scope.openNoAuth)                               notifyCount++;\n+            if (!$scope.configInSync)                            notifyCount++;\n+            if (Object.keys($scope.deviceRejections).length > 0) notifyCount++;\n+            if (Object.keys($scope.folderRejections).length > 0) notifyCount++;\n+            if ($scope.errorList().length > 0)                   notifyCount++;\n+            if (!online)                                         notifyCount++;\n+\n+            // return order is important!\n+            if (syncCount > 0) return 'sync';                     // at least one device or folder is syncing, or a folder is scanning\n+            if (notifyCount > 0) return 'notify';                 // a device is unknown or a folder is stopped/unknown/outofsync/error or some other notification is open or gui offline\n+            if (pauseCount === deviceCount-1) return 'pause';     // all used devices are paused except this one\n+            return 'default';","path":"gui/default/syncthing/core/syncthingController.js","position":54,"original_position":54,"commit_id":"899df47eca87c6a17c0b175a3153403e9dbf8913","original_commit_id":"9c452d08b56df89c79b003b1786424d2934b3853","user":{"login":"norgeous","id":4681349,"avatar_url":"https://avatars.githubusercontent.com/u/4681349?v=3","gravatar_id":"","url":"https://api.github.com/users/norgeous","html_url":"https://github.com/norgeous","followers_url":"https://api.github.com/users/norgeous/followers","following_url":"https://api.github.com/users/norgeous/following{/other_user}","gists_url":"https://api.github.com/users/norgeous/gists{/gist_id}","starred_url":"https://api.github.com/users/norgeous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/norgeous/subscriptions","organizations_url":"https://api.github.com/users/norgeous/orgs","repos_url":"https://api.github.com/users/norgeous/repos","events_url":"https://api.github.com/users/norgeous/events{/privacy}","received_events_url":"https://api.github.com/users/norgeous/received_events","type":"User","site_admin":false},"body":"i feel its more important to show `sync` over `notify`. always.\r\nif we return on first `notify` found (say device unknown) with a folder sync in progress - `notify` will show instead of `sync`.","created_at":"2016-05-31T12:29:05Z","updated_at":"2016-05-31T12:29:05Z","html_url":"https://github.com/syncthing/syncthing/pull/3217#discussion_r65171680","pull_request_url":"https://api.github.com/repos/syncthing/syncthing/pulls/3217","_links":{"self":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/comments/65171680"},"html":{"href":"https://github.com/syncthing/syncthing/pull/3217#discussion_r65171680"},"pull_request":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/3217"}}},"pull_request":{"url":"https://api.github.com/repos/syncthing/syncthing/pulls/3217","id":71861606,"html_url":"https://github.com/syncthing/syncthing/pull/3217","diff_url":"https://github.com/syncthing/syncthing/pull/3217.diff","patch_url":"https://github.com/syncthing/syncthing/pull/3217.patch","issue_url":"https://api.github.com/repos/syncthing/syncthing/issues/3217","number":3217,"state":"open","locked":false,"title":"gui: Favicon Status ","user":{"login":"norgeous","id":4681349,"avatar_url":"https://avatars.githubusercontent.com/u/4681349?v=3","gravatar_id":"","url":"https://api.github.com/users/norgeous","html_url":"https://github.com/norgeous","followers_url":"https://api.github.com/users/norgeous/followers","following_url":"https://api.github.com/users/norgeous/following{/other_user}","gists_url":"https://api.github.com/users/norgeous/gists{/gist_id}","starred_url":"https://api.github.com/users/norgeous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/norgeous/subscriptions","organizations_url":"https://api.github.com/users/norgeous/orgs","repos_url":"https://api.github.com/users/norgeous/repos","events_url":"https://api.github.com/users/norgeous/events{/privacy}","received_events_url":"https://api.github.com/users/norgeous/received_events","type":"User","site_admin":false},"body":"### Purpose\r\nAttempt at #1018 following on from discussion in #2622 with focus on 16x16 accuracy.\r\n\r\n-------------------------------\r\n\r\n### Background info\r\nI started with this logo:\r\n[assets/logo-only.svg](https://github.com/syncthing/syncthing/blob/master/assets/logo-only.svg) ([raw](https://raw.githubusercontent.com/syncthing/syncthing/master/assets/logo-only.svg))\r\noriginally 117.3x117.3, I have converted it to be 16x16 and cleaned up the file in a text editor:\r\n[_cleaned16x16.svg](https://github.com/norgeous/syncthing/blob/0fa136f191acf3faaba0a6a58fef2143e83305e1/assets/svg/_cleaned16x16.svg) ([raw](https://raw.githubusercontent.com/norgeous/syncthing/0fa136f191acf3faaba0a6a58fef2143e83305e1/assets/svg/_cleaned16x16.svg)) - raw is now human readable\r\nhopefully these two files are similar enough (slight difference), as I have based all the svgs on `_cleaned16x16.svg`. If this causes a probelm (too dissimilar), I'm sure that I can fix it.\r\n\r\n-------------------------------\r\n\r\n### chosen set:\r\n![default](https://cloud.githubusercontent.com/assets/4681349/15661900/d1608178-26e3-11e6-955d-4c741f9bbaba.png) ![sync](https://cloud.githubusercontent.com/assets/4681349/15661903/d1698ca0-26e3-11e6-8a5c-50286f9282f1.png) ![pause](https://cloud.githubusercontent.com/assets/4681349/15661902/d16789f0-26e3-11e6-97d6-d6b6ac40ee9d.png) ![notify](https://cloud.githubusercontent.com/assets/4681349/15661901/d1653268-26e3-11e6-8585-2664350941ae.png)\r\n\r\n-------------------------------\r\n\r\n### previous options\r\n![mono](https://cloud.githubusercontent.com/assets/4681349/15639398/f28045a8-2622-11e6-8cc8-3ae4fd54f32a.png) ![cleaned16](https://cloud.githubusercontent.com/assets/4681349/15639554/ed70ac04-2624-11e6-8e3d-0a443a9c2580.png) ![progress](https://cloud.githubusercontent.com/assets/4681349/15639393/e7f898ce-2622-11e6-9f53-e5b66aab4b6e.png) ![sync000](https://cloud.githubusercontent.com/assets/4681349/15647440/7af62ac8-265b-11e6-8634-c77505f6e780.png) ![sync000-black](https://cloud.githubusercontent.com/assets/4681349/15647441/7d1a4ef6-265b-11e6-91ed-e359a901f021.png) ![sync000-gray](https://cloud.githubusercontent.com/assets/4681349/15647443/7eac5e08-265b-11e6-861e-ce0a81acaf63.png) ![transparent](https://cloud.githubusercontent.com/assets/4681349/15639402/f7bcf7fa-2622-11e6-87d8-f2fad5be61d3.png) ![pause-transparent](https://cloud.githubusercontent.com/assets/4681349/15639403/f9bed47e-2622-11e6-84ae-ba453a12c2a7.png) ![pause-mono](https://cloud.githubusercontent.com/assets/4681349/15639401/f5cd2546-2622-11e6-98ab-3e9cf88ff2e0.png) ![pause-gray-mono](https://cloud.githubusercontent.com/assets/4681349/15647279/8551d7ac-265a-11e6-924a-7ec285af44d9.png) ![pause-blue-mono](https://cloud.githubusercontent.com/assets/4681349/15648719/4622418e-2664-11e6-914d-fb75d74eb5bd.png) ![pause-blue](https://cloud.githubusercontent.com/assets/4681349/15647356/f434f820-265a-11e6-9f8f-2c173f2e1f4b.png) ![pause-black](https://cloud.githubusercontent.com/assets/4681349/15647358/f7a9b8ec-265a-11e6-97ae-1abe2080d3f4.png) ![error-yellow](https://cloud.githubusercontent.com/assets/4681349/15639406/fd52ac50-2622-11e6-92c4-861ae4bfb297.png) ![notify-orange](https://cloud.githubusercontent.com/assets/4681349/15647150/c17ca906-2659-11e6-962e-7ab5439df7fc.png) ![notify-blue](https://cloud.githubusercontent.com/assets/4681349/15647212/14813d2e-265a-11e6-8be1-f513da8328cf.png) ![notify-black](https://cloud.githubusercontent.com/assets/4681349/15647215/16eb5dba-265a-11e6-8fae-725a1bd59208.png) ![notify-gray](https://cloud.githubusercontent.com/assets/4681349/15647218/198ab9c6-265a-11e6-8e29-e42f0ee061a7.png) ![error-red](https://cloud.githubusercontent.com/assets/4681349/15639407/00552f72-2623-11e6-80bf-89c06ff9ff89.png)\r\n\r\n","created_at":"2016-05-30T07:17:46Z","updated_at":"2016-05-31T12:29:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dd34878aaa50a631ab5986255d543a0dfa038676","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/syncthing/syncthing/pulls/3217/commits","review_comments_url":"https://api.github.com/repos/syncthing/syncthing/pulls/3217/comments","review_comment_url":"https://api.github.com/repos/syncthing/syncthing/pulls/comments{/number}","comments_url":"https://api.github.com/repos/syncthing/syncthing/issues/3217/comments","statuses_url":"https://api.github.com/repos/syncthing/syncthing/statuses/899df47eca87c6a17c0b175a3153403e9dbf8913","head":{"label":"norgeous:flavicons","ref":"flavicons","sha":"899df47eca87c6a17c0b175a3153403e9dbf8913","user":{"login":"norgeous","id":4681349,"avatar_url":"https://avatars.githubusercontent.com/u/4681349?v=3","gravatar_id":"","url":"https://api.github.com/users/norgeous","html_url":"https://github.com/norgeous","followers_url":"https://api.github.com/users/norgeous/followers","following_url":"https://api.github.com/users/norgeous/following{/other_user}","gists_url":"https://api.github.com/users/norgeous/gists{/gist_id}","starred_url":"https://api.github.com/users/norgeous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/norgeous/subscriptions","organizations_url":"https://api.github.com/users/norgeous/orgs","repos_url":"https://api.github.com/users/norgeous/repos","events_url":"https://api.github.com/users/norgeous/events{/privacy}","received_events_url":"https://api.github.com/users/norgeous/received_events","type":"User","site_admin":false},"repo":{"id":59446514,"name":"syncthing","full_name":"norgeous/syncthing","owner":{"login":"norgeous","id":4681349,"avatar_url":"https://avatars.githubusercontent.com/u/4681349?v=3","gravatar_id":"","url":"https://api.github.com/users/norgeous","html_url":"https://github.com/norgeous","followers_url":"https://api.github.com/users/norgeous/followers","following_url":"https://api.github.com/users/norgeous/following{/other_user}","gists_url":"https://api.github.com/users/norgeous/gists{/gist_id}","starred_url":"https://api.github.com/users/norgeous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/norgeous/subscriptions","organizations_url":"https://api.github.com/users/norgeous/orgs","repos_url":"https://api.github.com/users/norgeous/repos","events_url":"https://api.github.com/users/norgeous/events{/privacy}","received_events_url":"https://api.github.com/users/norgeous/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/norgeous/syncthing","description":"Open Source Continuous File Synchronization","fork":true,"url":"https://api.github.com/repos/norgeous/syncthing","forks_url":"https://api.github.com/repos/norgeous/syncthing/forks","keys_url":"https://api.github.com/repos/norgeous/syncthing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/norgeous/syncthing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/norgeous/syncthing/teams","hooks_url":"https://api.github.com/repos/norgeous/syncthing/hooks","issue_events_url":"https://api.github.com/repos/norgeous/syncthing/issues/events{/number}","events_url":"https://api.github.com/repos/norgeous/syncthing/events","assignees_url":"https://api.github.com/repos/norgeous/syncthing/assignees{/user}","branches_url":"https://api.github.com/repos/norgeous/syncthing/branches{/branch}","tags_url":"https://api.github.com/repos/norgeous/syncthing/tags","blobs_url":"https://api.github.com/repos/norgeous/syncthing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/norgeous/syncthing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/norgeous/syncthing/git/refs{/sha}","trees_url":"https://api.github.com/repos/norgeous/syncthing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/norgeous/syncthing/statuses/{sha}","languages_url":"https://api.github.com/repos/norgeous/syncthing/languages","stargazers_url":"https://api.github.com/repos/norgeous/syncthing/stargazers","contributors_url":"https://api.github.com/repos/norgeous/syncthing/contributors","subscribers_url":"https://api.github.com/repos/norgeous/syncthing/subscribers","subscription_url":"https://api.github.com/repos/norgeous/syncthing/subscription","commits_url":"https://api.github.com/repos/norgeous/syncthing/commits{/sha}","git_commits_url":"https://api.github.com/repos/norgeous/syncthing/git/commits{/sha}","comments_url":"https://api.github.com/repos/norgeous/syncthing/comments{/number}","issue_comment_url":"https://api.github.com/repos/norgeous/syncthing/issues/comments{/number}","contents_url":"https://api.github.com/repos/norgeous/syncthing/contents/{+path}","compare_url":"https://api.github.com/repos/norgeous/syncthing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/norgeous/syncthing/merges","archive_url":"https://api.github.com/repos/norgeous/syncthing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/norgeous/syncthing/downloads","issues_url":"https://api.github.com/repos/norgeous/syncthing/issues{/number}","pulls_url":"https://api.github.com/repos/norgeous/syncthing/pulls{/number}","milestones_url":"https://api.github.com/repos/norgeous/syncthing/milestones{/number}","notifications_url":"https://api.github.com/repos/norgeous/syncthing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/norgeous/syncthing/labels{/name}","releases_url":"https://api.github.com/repos/norgeous/syncthing/releases{/id}","deployments_url":"https://api.github.com/repos/norgeous/syncthing/deployments","created_at":"2016-05-23T02:30:56Z","updated_at":"2016-05-23T02:30:58Z","pushed_at":"2016-05-31T12:05:53Z","git_url":"git://github.com/norgeous/syncthing.git","ssh_url":"git@github.com:norgeous/syncthing.git","clone_url":"https://github.com/norgeous/syncthing.git","svn_url":"https://github.com/norgeous/syncthing","homepage":"http://forum.syncthing.net/","size":72794,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"syncthing:master","ref":"master","sha":"6361172bea1d5c4de421db8134a1738367ede690","user":{"login":"syncthing","id":7628018,"avatar_url":"https://avatars.githubusercontent.com/u/7628018?v=3","gravatar_id":"","url":"https://api.github.com/users/syncthing","html_url":"https://github.com/syncthing","followers_url":"https://api.github.com/users/syncthing/followers","following_url":"https://api.github.com/users/syncthing/following{/other_user}","gists_url":"https://api.github.com/users/syncthing/gists{/gist_id}","starred_url":"https://api.github.com/users/syncthing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syncthing/subscriptions","organizations_url":"https://api.github.com/users/syncthing/orgs","repos_url":"https://api.github.com/users/syncthing/repos","events_url":"https://api.github.com/users/syncthing/events{/privacy}","received_events_url":"https://api.github.com/users/syncthing/received_events","type":"Organization","site_admin":false},"repo":{"id":14712850,"name":"syncthing","full_name":"syncthing/syncthing","owner":{"login":"syncthing","id":7628018,"avatar_url":"https://avatars.githubusercontent.com/u/7628018?v=3","gravatar_id":"","url":"https://api.github.com/users/syncthing","html_url":"https://github.com/syncthing","followers_url":"https://api.github.com/users/syncthing/followers","following_url":"https://api.github.com/users/syncthing/following{/other_user}","gists_url":"https://api.github.com/users/syncthing/gists{/gist_id}","starred_url":"https://api.github.com/users/syncthing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syncthing/subscriptions","organizations_url":"https://api.github.com/users/syncthing/orgs","repos_url":"https://api.github.com/users/syncthing/repos","events_url":"https://api.github.com/users/syncthing/events{/privacy}","received_events_url":"https://api.github.com/users/syncthing/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/syncthing/syncthing","description":"Open Source Continuous File Synchronization","fork":false,"url":"https://api.github.com/repos/syncthing/syncthing","forks_url":"https://api.github.com/repos/syncthing/syncthing/forks","keys_url":"https://api.github.com/repos/syncthing/syncthing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/syncthing/syncthing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/syncthing/syncthing/teams","hooks_url":"https://api.github.com/repos/syncthing/syncthing/hooks","issue_events_url":"https://api.github.com/repos/syncthing/syncthing/issues/events{/number}","events_url":"https://api.github.com/repos/syncthing/syncthing/events","assignees_url":"https://api.github.com/repos/syncthing/syncthing/assignees{/user}","branches_url":"https://api.github.com/repos/syncthing/syncthing/branches{/branch}","tags_url":"https://api.github.com/repos/syncthing/syncthing/tags","blobs_url":"https://api.github.com/repos/syncthing/syncthing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/syncthing/syncthing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/syncthing/syncthing/git/refs{/sha}","trees_url":"https://api.github.com/repos/syncthing/syncthing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/syncthing/syncthing/statuses/{sha}","languages_url":"https://api.github.com/repos/syncthing/syncthing/languages","stargazers_url":"https://api.github.com/repos/syncthing/syncthing/stargazers","contributors_url":"https://api.github.com/repos/syncthing/syncthing/contributors","subscribers_url":"https://api.github.com/repos/syncthing/syncthing/subscribers","subscription_url":"https://api.github.com/repos/syncthing/syncthing/subscription","commits_url":"https://api.github.com/repos/syncthing/syncthing/commits{/sha}","git_commits_url":"https://api.github.com/repos/syncthing/syncthing/git/commits{/sha}","comments_url":"https://api.github.com/repos/syncthing/syncthing/comments{/number}","issue_comment_url":"https://api.github.com/repos/syncthing/syncthing/issues/comments{/number}","contents_url":"https://api.github.com/repos/syncthing/syncthing/contents/{+path}","compare_url":"https://api.github.com/repos/syncthing/syncthing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/syncthing/syncthing/merges","archive_url":"https://api.github.com/repos/syncthing/syncthing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/syncthing/syncthing/downloads","issues_url":"https://api.github.com/repos/syncthing/syncthing/issues{/number}","pulls_url":"https://api.github.com/repos/syncthing/syncthing/pulls{/number}","milestones_url":"https://api.github.com/repos/syncthing/syncthing/milestones{/number}","notifications_url":"https://api.github.com/repos/syncthing/syncthing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/syncthing/syncthing/labels{/name}","releases_url":"https://api.github.com/repos/syncthing/syncthing/releases{/id}","deployments_url":"https://api.github.com/repos/syncthing/syncthing/deployments","created_at":"2013-11-26T09:48:21Z","updated_at":"2016-05-31T11:41:08Z","pushed_at":"2016-05-31T12:05:58Z","git_url":"git://github.com/syncthing/syncthing.git","ssh_url":"git@github.com:syncthing/syncthing.git","clone_url":"https://github.com/syncthing/syncthing.git","svn_url":"https://github.com/syncthing/syncthing","homepage":"http://forum.syncthing.net/","size":112540,"stargazers_count":12371,"watchers_count":12371,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":949,"mirror_url":null,"open_issues_count":195,"forks":949,"open_issues":195,"watchers":12371,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/3217"},"html":{"href":"https://github.com/syncthing/syncthing/pull/3217"},"issue":{"href":"https://api.github.com/repos/syncthing/syncthing/issues/3217"},"comments":{"href":"https://api.github.com/repos/syncthing/syncthing/issues/3217/comments"},"review_comments":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/3217/comments"},"review_comment":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/syncthing/syncthing/pulls/3217/commits"},"statuses":{"href":"https://api.github.com/repos/syncthing/syncthing/statuses/899df47eca87c6a17c0b175a3153403e9dbf8913"}}}}
{"actor":{"display_login":"norgeous"}}