{"action":"created","comment":{"url":"https://api.github.com/repos/FolioReader/FolioReaderKit/pulls/comments/78881929","id":78881929,"diff_hunk":"@@ -97,29 +97,48 @@ public class FolioReader: NSObject {\n     }\n     \n     /// Check if current theme is Night mode\n-    static var nightMode: Bool {\n+    public static var nightMode: Bool {\n         get { return FolioReader.defaults.boolForKey(kNightMode) }\n         set (value) {\n             FolioReader.defaults.setBool(value, forKey: kNightMode)\n+\t\t\tFolioReader.defaults.synchronize()\n+\n+\t\t\tif let _readerCenter = FolioReader.sharedInstance.readerCenter {\n+\t\t\t\tUIView.animateWithDuration(0.6, animations: {\n+\t\t\t\t\t_readerCenter.currentPage?.webView.js(\"nightMode(\\(nightMode))\")\n+\t\t\t\t\t_readerCenter.pageIndicatorView?.reloadColors()\n+\t\t\t\t\t_readerCenter.configureNavBar()\n+\t\t\t\t\t_readerCenter.scrollScrubber?.updateColors()","path":"Source/FolioReaderKit.swift","position":25,"original_position":25,"commit_id":"c490695b193e10349540e09ca01aa64491eb6f69","original_commit_id":"c490695b193e10349540e09ca01aa64491eb6f69","user":{"login":"hebertialmeida","id":103670,"avatar_url":"https://avatars.githubusercontent.com/u/103670?v=3","gravatar_id":"","url":"https://api.github.com/users/hebertialmeida","html_url":"https://github.com/hebertialmeida","followers_url":"https://api.github.com/users/hebertialmeida/followers","following_url":"https://api.github.com/users/hebertialmeida/following{/other_user}","gists_url":"https://api.github.com/users/hebertialmeida/gists{/gist_id}","starred_url":"https://api.github.com/users/hebertialmeida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hebertialmeida/subscriptions","organizations_url":"https://api.github.com/users/hebertialmeida/orgs","repos_url":"https://api.github.com/users/hebertialmeida/repos","events_url":"https://api.github.com/users/hebertialmeida/events{/privacy}","received_events_url":"https://api.github.com/users/hebertialmeida/received_events","type":"User","site_admin":false},"body":"Why not use same name here? `updateColors` and `reloadColors`, let's pick one 😄.","created_at":"2016-09-15T02:49:14Z","updated_at":"2016-09-15T02:49:37Z","html_url":"https://github.com/FolioReader/FolioReaderKit/pull/138#discussion_r78881929","pull_request_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/pulls/138","_links":{"self":{"href":"https://api.github.com/repos/FolioReader/FolioReaderKit/pulls/comments/78881929"},"html":{"href":"https://github.com/FolioReader/FolioReaderKit/pull/138#discussion_r78881929"},"pull_request":{"href":"https://api.github.com/repos/FolioReader/FolioReaderKit/pulls/138"}}},"pull_request":{"url":"https://api.github.com/repos/FolioReader/FolioReaderKit/pulls/138","id":84626122,"html_url":"https://github.com/FolioReader/FolioReaderKit/pull/138","diff_url":"https://github.com/FolioReader/FolioReaderKit/pull/138.diff","patch_url":"https://github.com/FolioReader/FolioReaderKit/pull/138.patch","issue_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/issues/138","number":138,"state":"open","locked":false,"title":"Expose font settings - closes #33","user":{"login":"tschob","id":3233717,"avatar_url":"https://avatars.githubusercontent.com/u/3233717?v=3","gravatar_id":"","url":"https://api.github.com/users/tschob","html_url":"https://github.com/tschob","followers_url":"https://api.github.com/users/tschob/followers","following_url":"https://api.github.com/users/tschob/following{/other_user}","gists_url":"https://api.github.com/users/tschob/gists{/gist_id}","starred_url":"https://api.github.com/users/tschob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschob/subscriptions","organizations_url":"https://api.github.com/users/tschob/orgs","repos_url":"https://api.github.com/users/tschob/repos","events_url":"https://api.github.com/users/tschob/events{/privacy}","received_events_url":"https://api.github.com/users/tschob/received_events","type":"User","site_admin":false},"body":"This PR contains following changes:\r\n- The changes from the not yet merged PR https://github.com/FolioReader/FolioReaderKit/pull/137 (Do the #137 PR first)\r\n- Exposed font static vars\r\n- Refactored layout updates if the font settings changed (it's now in `FolioReader` instead of `FolioReaderFontsMenu`)","created_at":"2016-09-09T10:12:34Z","updated_at":"2016-09-15T02:49:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"66dec2a3614fb2f49caa239df47e0fa13cbc5a8a","assignee":{"login":"hebertialmeida","id":103670,"avatar_url":"https://avatars.githubusercontent.com/u/103670?v=3","gravatar_id":"","url":"https://api.github.com/users/hebertialmeida","html_url":"https://github.com/hebertialmeida","followers_url":"https://api.github.com/users/hebertialmeida/followers","following_url":"https://api.github.com/users/hebertialmeida/following{/other_user}","gists_url":"https://api.github.com/users/hebertialmeida/gists{/gist_id}","starred_url":"https://api.github.com/users/hebertialmeida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hebertialmeida/subscriptions","organizations_url":"https://api.github.com/users/hebertialmeida/orgs","repos_url":"https://api.github.com/users/hebertialmeida/repos","events_url":"https://api.github.com/users/hebertialmeida/events{/privacy}","received_events_url":"https://api.github.com/users/hebertialmeida/received_events","type":"User","site_admin":false},"assignees":[{"login":"hebertialmeida","id":103670,"avatar_url":"https://avatars.githubusercontent.com/u/103670?v=3","gravatar_id":"","url":"https://api.github.com/users/hebertialmeida","html_url":"https://github.com/hebertialmeida","followers_url":"https://api.github.com/users/hebertialmeida/followers","following_url":"https://api.github.com/users/hebertialmeida/following{/other_user}","gists_url":"https://api.github.com/users/hebertialmeida/gists{/gist_id}","starred_url":"https://api.github.com/users/hebertialmeida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hebertialmeida/subscriptions","organizations_url":"https://api.github.com/users/hebertialmeida/orgs","repos_url":"https://api.github.com/users/hebertialmeida/repos","events_url":"https://api.github.com/users/hebertialmeida/events{/privacy}","received_events_url":"https://api.github.com/users/hebertialmeida/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/pulls/138/commits","review_comments_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/pulls/138/comments","review_comment_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/issues/138/comments","statuses_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/statuses/c490695b193e10349540e09ca01aa64491eb6f69","head":{"label":"smartmobilefactory:issue/133","ref":"issue/133","sha":"c490695b193e10349540e09ca01aa64491eb6f69","user":{"login":"smartmobilefactory","id":213034,"avatar_url":"https://avatars.githubusercontent.com/u/213034?v=3","gravatar_id":"","url":"https://api.github.com/users/smartmobilefactory","html_url":"https://github.com/smartmobilefactory","followers_url":"https://api.github.com/users/smartmobilefactory/followers","following_url":"https://api.github.com/users/smartmobilefactory/following{/other_user}","gists_url":"https://api.github.com/users/smartmobilefactory/gists{/gist_id}","starred_url":"https://api.github.com/users/smartmobilefactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartmobilefactory/subscriptions","organizations_url":"https://api.github.com/users/smartmobilefactory/orgs","repos_url":"https://api.github.com/users/smartmobilefactory/repos","events_url":"https://api.github.com/users/smartmobilefactory/events{/privacy}","received_events_url":"https://api.github.com/users/smartmobilefactory/received_events","type":"Organization","site_admin":false},"repo":{"id":66854932,"name":"FolioReaderKit","full_name":"smartmobilefactory/FolioReaderKit","owner":{"login":"smartmobilefactory","id":213034,"avatar_url":"https://avatars.githubusercontent.com/u/213034?v=3","gravatar_id":"","url":"https://api.github.com/users/smartmobilefactory","html_url":"https://github.com/smartmobilefactory","followers_url":"https://api.github.com/users/smartmobilefactory/followers","following_url":"https://api.github.com/users/smartmobilefactory/following{/other_user}","gists_url":"https://api.github.com/users/smartmobilefactory/gists{/gist_id}","starred_url":"https://api.github.com/users/smartmobilefactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartmobilefactory/subscriptions","organizations_url":"https://api.github.com/users/smartmobilefactory/orgs","repos_url":"https://api.github.com/users/smartmobilefactory/repos","events_url":"https://api.github.com/users/smartmobilefactory/events{/privacy}","received_events_url":"https://api.github.com/users/smartmobilefactory/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/smartmobilefactory/FolioReaderKit","description":"A Swift ePub reader and parser framework for iOS.","fork":true,"url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit","forks_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/forks","keys_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/teams","hooks_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/hooks","issue_events_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/issues/events{/number}","events_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/events","assignees_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/assignees{/user}","branches_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/branches{/branch}","tags_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/tags","blobs_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/git/refs{/sha}","trees_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/statuses/{sha}","languages_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/languages","stargazers_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/stargazers","contributors_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/contributors","subscribers_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/subscribers","subscription_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/subscription","commits_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/commits{/sha}","git_commits_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/git/commits{/sha}","comments_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/comments{/number}","issue_comment_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/issues/comments{/number}","contents_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/contents/{+path}","compare_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/merges","archive_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/downloads","issues_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/issues{/number}","pulls_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/pulls{/number}","milestones_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/milestones{/number}","notifications_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/labels{/name}","releases_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/releases{/id}","deployments_url":"https://api.github.com/repos/smartmobilefactory/FolioReaderKit/deployments","created_at":"2016-08-29T15:15:42Z","updated_at":"2016-08-29T15:15:44Z","pushed_at":"2016-09-14T11:15:34Z","git_url":"git://github.com/smartmobilefactory/FolioReaderKit.git","ssh_url":"git@github.com:smartmobilefactory/FolioReaderKit.git","clone_url":"https://github.com/smartmobilefactory/FolioReaderKit.git","svn_url":"https://github.com/smartmobilefactory/FolioReaderKit","homepage":"","size":62284,"stargazers_count":0,"watchers_count":0,"language":"Swift","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":"FolioReader:master","ref":"master","sha":"39e4bdbbc65ce6acbc60fa0768664ef8598ed294","user":{"login":"FolioReader","id":11838834,"avatar_url":"https://avatars.githubusercontent.com/u/11838834?v=3","gravatar_id":"","url":"https://api.github.com/users/FolioReader","html_url":"https://github.com/FolioReader","followers_url":"https://api.github.com/users/FolioReader/followers","following_url":"https://api.github.com/users/FolioReader/following{/other_user}","gists_url":"https://api.github.com/users/FolioReader/gists{/gist_id}","starred_url":"https://api.github.com/users/FolioReader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FolioReader/subscriptions","organizations_url":"https://api.github.com/users/FolioReader/orgs","repos_url":"https://api.github.com/users/FolioReader/repos","events_url":"https://api.github.com/users/FolioReader/events{/privacy}","received_events_url":"https://api.github.com/users/FolioReader/received_events","type":"Organization","site_admin":false},"repo":{"id":33617947,"name":"FolioReaderKit","full_name":"FolioReader/FolioReaderKit","owner":{"login":"FolioReader","id":11838834,"avatar_url":"https://avatars.githubusercontent.com/u/11838834?v=3","gravatar_id":"","url":"https://api.github.com/users/FolioReader","html_url":"https://github.com/FolioReader","followers_url":"https://api.github.com/users/FolioReader/followers","following_url":"https://api.github.com/users/FolioReader/following{/other_user}","gists_url":"https://api.github.com/users/FolioReader/gists{/gist_id}","starred_url":"https://api.github.com/users/FolioReader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FolioReader/subscriptions","organizations_url":"https://api.github.com/users/FolioReader/orgs","repos_url":"https://api.github.com/users/FolioReader/repos","events_url":"https://api.github.com/users/FolioReader/events{/privacy}","received_events_url":"https://api.github.com/users/FolioReader/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FolioReader/FolioReaderKit","description":"A Swift ePub reader and parser framework for iOS.","fork":false,"url":"https://api.github.com/repos/FolioReader/FolioReaderKit","forks_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/forks","keys_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/teams","hooks_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/hooks","issue_events_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/issues/events{/number}","events_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/events","assignees_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/assignees{/user}","branches_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/branches{/branch}","tags_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/tags","blobs_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/git/refs{/sha}","trees_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/statuses/{sha}","languages_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/languages","stargazers_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/stargazers","contributors_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/contributors","subscribers_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/subscribers","subscription_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/subscription","commits_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/commits{/sha}","git_commits_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/git/commits{/sha}","comments_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/comments{/number}","issue_comment_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/issues/comments{/number}","contents_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/contents/{+path}","compare_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/merges","archive_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/downloads","issues_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/issues{/number}","pulls_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/pulls{/number}","milestones_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/milestones{/number}","notifications_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/labels{/name}","releases_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/releases{/id}","deployments_url":"https://api.github.com/repos/FolioReader/FolioReaderKit/deployments","created_at":"2015-04-08T16:16:09Z","updated_at":"2016-09-14T23:16:06Z","pushed_at":"2016-09-14T11:14:53Z","git_url":"git://github.com/FolioReader/FolioReaderKit.git","ssh_url":"git@github.com:FolioReader/FolioReaderKit.git","clone_url":"https://github.com/FolioReader/FolioReaderKit.git","svn_url":"https://github.com/FolioReader/FolioReaderKit","homepage":"","size":80027,"stargazers_count":1037,"watchers_count":1037,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":147,"mirror_url":null,"open_issues_count":33,"forks":147,"open_issues":33,"watchers":1037,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FolioReader/FolioReaderKit/pulls/138"},"html":{"href":"https://github.com/FolioReader/FolioReaderKit/pull/138"},"issue":{"href":"https://api.github.com/repos/FolioReader/FolioReaderKit/issues/138"},"comments":{"href":"https://api.github.com/repos/FolioReader/FolioReaderKit/issues/138/comments"},"review_comments":{"href":"https://api.github.com/repos/FolioReader/FolioReaderKit/pulls/138/comments"},"review_comment":{"href":"https://api.github.com/repos/FolioReader/FolioReaderKit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FolioReader/FolioReaderKit/pulls/138/commits"},"statuses":{"href":"https://api.github.com/repos/FolioReader/FolioReaderKit/statuses/c490695b193e10349540e09ca01aa64491eb6f69"}}}}
{"actor":{"display_login":"hebertialmeida"}}