{"action":"opened","number":152,"pull_request":{"url":"https://api.github.com/repos/afollestad/material-dialogs/pulls/152","id":26742550,"html_url":"https://github.com/afollestad/material-dialogs/pull/152","diff_url":"https://github.com/afollestad/material-dialogs/pull/152.diff","patch_url":"https://github.com/afollestad/material-dialogs/pull/152.patch","issue_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/152","number":152,"state":"open","locked":false,"title":"Custom Theme Enabled","user":{"login":"TheFinestArtist","id":3123741,"avatar_url":"https://avatars.githubusercontent.com/u/3123741?v=3","gravatar_id":"","url":"https://api.github.com/users/TheFinestArtist","html_url":"https://github.com/TheFinestArtist","followers_url":"https://api.github.com/users/TheFinestArtist/followers","following_url":"https://api.github.com/users/TheFinestArtist/following{/other_user}","gists_url":"https://api.github.com/users/TheFinestArtist/gists{/gist_id}","starred_url":"https://api.github.com/users/TheFinestArtist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheFinestArtist/subscriptions","organizations_url":"https://api.github.com/users/TheFinestArtist/orgs","repos_url":"https://api.github.com/users/TheFinestArtist/repos","events_url":"https://api.github.com/users/TheFinestArtist/events{/privacy}","received_events_url":"https://api.github.com/users/TheFinestArtist/received_events","type":"User","site_admin":false},"body":"https://github.com/afollestad/material-dialogs/issues/100\r\nAdded some global attributes such as\r\n```xml\r\n<item name=\"md_custom_theme\">true</item>\r\n<item name=\"md_bg_color\">#673AB7</item>\r\n<item name=\"md_divider_color\">#673AB7</item>\r\n<item name=\"md_selector\">@drawable/selector</item>\r\n<item name=\"md_btn_selector\">@drawable/selector</item>\r\n```\r\n\r\nNew attribute ```md_bg_color```, ```md_divider_color```, ```md_selector```, ```md_btn_selector``` will be enabled only when ```md_custom_theme``` is ```true```.\r\n\r\nWe can also set there attribute programmatically.\r\n```java\r\npublic Builder backgroundColor(int color)\r\npublic Builder backgroundColorRes(@ColorRes int colorRes)\r\npublic Builder dividerColor(int color) \r\npublic Builder dividerColorRes(@ColorRes int colorRes)\r\npublic Builder selector(@DrawableRes int selector)\r\npublic Builder btnSelector(@DrawableRes int btnSelector)\r\n```\r\n\r\nIf we don't set default for each attribute while using custom dialog, the default light or dark theme will be set as default. For example, when ```md_dark_theme``` is ```true``` and ```md_custom_theme``` is also ```true```, but ```md_bg_color``` hasn't set yet, background color might follow background color of ```md_dark_theme```.","created_at":"2015-01-01T11:56:22Z","updated_at":"2015-01-01T11:56:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/afollestad/material-dialogs/pulls/152/commits","review_comments_url":"https://api.github.com/repos/afollestad/material-dialogs/pulls/152/comments","review_comment_url":"https://api.github.com/repos/afollestad/material-dialogs/pulls/comments/{number}","comments_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/152/comments","statuses_url":"https://api.github.com/repos/afollestad/material-dialogs/statuses/a4f2dfe42edb271376638cf7d3e8d830a69bb23c","head":{"label":"TheFinestArtist:master","ref":"master","sha":"a4f2dfe42edb271376638cf7d3e8d830a69bb23c","user":{"login":"TheFinestArtist","id":3123741,"avatar_url":"https://avatars.githubusercontent.com/u/3123741?v=3","gravatar_id":"","url":"https://api.github.com/users/TheFinestArtist","html_url":"https://github.com/TheFinestArtist","followers_url":"https://api.github.com/users/TheFinestArtist/followers","following_url":"https://api.github.com/users/TheFinestArtist/following{/other_user}","gists_url":"https://api.github.com/users/TheFinestArtist/gists{/gist_id}","starred_url":"https://api.github.com/users/TheFinestArtist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheFinestArtist/subscriptions","organizations_url":"https://api.github.com/users/TheFinestArtist/orgs","repos_url":"https://api.github.com/users/TheFinestArtist/repos","events_url":"https://api.github.com/users/TheFinestArtist/events{/privacy}","received_events_url":"https://api.github.com/users/TheFinestArtist/received_events","type":"User","site_admin":false},"repo":{"id":28682344,"name":"material-dialogs","full_name":"TheFinestArtist/material-dialogs","owner":{"login":"TheFinestArtist","id":3123741,"avatar_url":"https://avatars.githubusercontent.com/u/3123741?v=3","gravatar_id":"","url":"https://api.github.com/users/TheFinestArtist","html_url":"https://github.com/TheFinestArtist","followers_url":"https://api.github.com/users/TheFinestArtist/followers","following_url":"https://api.github.com/users/TheFinestArtist/following{/other_user}","gists_url":"https://api.github.com/users/TheFinestArtist/gists{/gist_id}","starred_url":"https://api.github.com/users/TheFinestArtist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheFinestArtist/subscriptions","organizations_url":"https://api.github.com/users/TheFinestArtist/orgs","repos_url":"https://api.github.com/users/TheFinestArtist/repos","events_url":"https://api.github.com/users/TheFinestArtist/events{/privacy}","received_events_url":"https://api.github.com/users/TheFinestArtist/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TheFinestArtist/material-dialogs","description":"AppCompat doesn't use Material theming for AlertDialogs on pre-Lollipop, despite all the other theming for other views. This is a beautiful and easy solution.","fork":true,"url":"https://api.github.com/repos/TheFinestArtist/material-dialogs","forks_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/forks","keys_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/teams","hooks_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/hooks","issue_events_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/issues/events{/number}","events_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/events","assignees_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/assignees{/user}","branches_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/branches{/branch}","tags_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/tags","blobs_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/git/refs{/sha}","trees_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/statuses/{sha}","languages_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/languages","stargazers_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/stargazers","contributors_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/contributors","subscribers_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/subscribers","subscription_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/subscription","commits_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/commits{/sha}","git_commits_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/git/commits{/sha}","comments_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/comments{/number}","issue_comment_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/issues/comments/{number}","contents_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/contents/{+path}","compare_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/merges","archive_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/downloads","issues_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/issues{/number}","pulls_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/pulls{/number}","milestones_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/milestones{/number}","notifications_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/labels{/name}","releases_url":"https://api.github.com/repos/TheFinestArtist/material-dialogs/releases{/id}","created_at":"2015-01-01T07:17:19Z","updated_at":"2015-01-01T11:47:01Z","pushed_at":"2015-01-01T11:47:01Z","git_url":"git://github.com/TheFinestArtist/material-dialogs.git","ssh_url":"git@github.com:TheFinestArtist/material-dialogs.git","clone_url":"https://github.com/TheFinestArtist/material-dialogs.git","svn_url":"https://github.com/TheFinestArtist/material-dialogs","homepage":"https://play.google.com/store/apps/details?id=com.afollestad.materialdialogssample","size":46774,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"afollestad:master","ref":"master","sha":"e88b5ce4a0706022b336cb41cfd16221429b8ce9","user":{"login":"afollestad","id":1820165,"avatar_url":"https://avatars.githubusercontent.com/u/1820165?v=3","gravatar_id":"","url":"https://api.github.com/users/afollestad","html_url":"https://github.com/afollestad","followers_url":"https://api.github.com/users/afollestad/followers","following_url":"https://api.github.com/users/afollestad/following{/other_user}","gists_url":"https://api.github.com/users/afollestad/gists{/gist_id}","starred_url":"https://api.github.com/users/afollestad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afollestad/subscriptions","organizations_url":"https://api.github.com/users/afollestad/orgs","repos_url":"https://api.github.com/users/afollestad/repos","events_url":"https://api.github.com/users/afollestad/events{/privacy}","received_events_url":"https://api.github.com/users/afollestad/received_events","type":"User","site_admin":false},"repo":{"id":26102180,"name":"material-dialogs","full_name":"afollestad/material-dialogs","owner":{"login":"afollestad","id":1820165,"avatar_url":"https://avatars.githubusercontent.com/u/1820165?v=3","gravatar_id":"","url":"https://api.github.com/users/afollestad","html_url":"https://github.com/afollestad","followers_url":"https://api.github.com/users/afollestad/followers","following_url":"https://api.github.com/users/afollestad/following{/other_user}","gists_url":"https://api.github.com/users/afollestad/gists{/gist_id}","starred_url":"https://api.github.com/users/afollestad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afollestad/subscriptions","organizations_url":"https://api.github.com/users/afollestad/orgs","repos_url":"https://api.github.com/users/afollestad/repos","events_url":"https://api.github.com/users/afollestad/events{/privacy}","received_events_url":"https://api.github.com/users/afollestad/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/afollestad/material-dialogs","description":"AppCompat doesn't use Material theming for AlertDialogs on pre-Lollipop, despite all the other theming for other views. This is a beautiful and easy solution.","fork":false,"url":"https://api.github.com/repos/afollestad/material-dialogs","forks_url":"https://api.github.com/repos/afollestad/material-dialogs/forks","keys_url":"https://api.github.com/repos/afollestad/material-dialogs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/afollestad/material-dialogs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/afollestad/material-dialogs/teams","hooks_url":"https://api.github.com/repos/afollestad/material-dialogs/hooks","issue_events_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/events{/number}","events_url":"https://api.github.com/repos/afollestad/material-dialogs/events","assignees_url":"https://api.github.com/repos/afollestad/material-dialogs/assignees{/user}","branches_url":"https://api.github.com/repos/afollestad/material-dialogs/branches{/branch}","tags_url":"https://api.github.com/repos/afollestad/material-dialogs/tags","blobs_url":"https://api.github.com/repos/afollestad/material-dialogs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/afollestad/material-dialogs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/afollestad/material-dialogs/git/refs{/sha}","trees_url":"https://api.github.com/repos/afollestad/material-dialogs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/afollestad/material-dialogs/statuses/{sha}","languages_url":"https://api.github.com/repos/afollestad/material-dialogs/languages","stargazers_url":"https://api.github.com/repos/afollestad/material-dialogs/stargazers","contributors_url":"https://api.github.com/repos/afollestad/material-dialogs/contributors","subscribers_url":"https://api.github.com/repos/afollestad/material-dialogs/subscribers","subscription_url":"https://api.github.com/repos/afollestad/material-dialogs/subscription","commits_url":"https://api.github.com/repos/afollestad/material-dialogs/commits{/sha}","git_commits_url":"https://api.github.com/repos/afollestad/material-dialogs/git/commits{/sha}","comments_url":"https://api.github.com/repos/afollestad/material-dialogs/comments{/number}","issue_comment_url":"https://api.github.com/repos/afollestad/material-dialogs/issues/comments/{number}","contents_url":"https://api.github.com/repos/afollestad/material-dialogs/contents/{+path}","compare_url":"https://api.github.com/repos/afollestad/material-dialogs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/afollestad/material-dialogs/merges","archive_url":"https://api.github.com/repos/afollestad/material-dialogs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/afollestad/material-dialogs/downloads","issues_url":"https://api.github.com/repos/afollestad/material-dialogs/issues{/number}","pulls_url":"https://api.github.com/repos/afollestad/material-dialogs/pulls{/number}","milestones_url":"https://api.github.com/repos/afollestad/material-dialogs/milestones{/number}","notifications_url":"https://api.github.com/repos/afollestad/material-dialogs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/afollestad/material-dialogs/labels{/name}","releases_url":"https://api.github.com/repos/afollestad/material-dialogs/releases{/id}","created_at":"2014-11-03T03:21:42Z","updated_at":"2014-12-31T21:20:28Z","pushed_at":"2014-12-31T08:01:52Z","git_url":"git://github.com/afollestad/material-dialogs.git","ssh_url":"git@github.com:afollestad/material-dialogs.git","clone_url":"https://github.com/afollestad/material-dialogs.git","svn_url":"https://github.com/afollestad/material-dialogs","homepage":"https://play.google.com/store/apps/details?id=com.afollestad.materialdialogssample","size":56984,"stargazers_count":930,"watchers_count":930,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":113,"mirror_url":null,"open_issues_count":1,"forks":113,"open_issues":1,"watchers":930,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/afollestad/material-dialogs/pulls/152"},"html":{"href":"https://github.com/afollestad/material-dialogs/pull/152"},"issue":{"href":"https://api.github.com/repos/afollestad/material-dialogs/issues/152"},"comments":{"href":"https://api.github.com/repos/afollestad/material-dialogs/issues/152/comments"},"review_comments":{"href":"https://api.github.com/repos/afollestad/material-dialogs/pulls/152/comments"},"review_comment":{"href":"https://api.github.com/repos/afollestad/material-dialogs/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/afollestad/material-dialogs/pulls/152/commits"},"statuses":{"href":"https://api.github.com/repos/afollestad/material-dialogs/statuses/a4f2dfe42edb271376638cf7d3e8d830a69bb23c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":9,"additions":274,"deletions":65,"changed_files":15}}