{"action":"created","issue":{"url":"https://api.github.com/repos/JyHu/EasyTheme/issues/1","repository_url":"https://api.github.com/repos/JyHu/EasyTheme","labels_url":"https://api.github.com/repos/JyHu/EasyTheme/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/JyHu/EasyTheme/issues/1/comments","events_url":"https://api.github.com/repos/JyHu/EasyTheme/issues/1/events","html_url":"https://github.com/JyHu/EasyTheme/issues/1","id":360810209,"node_id":"MDU6SXNzdWUzNjA4MTAyMDk=","number":1,"title":"针对Button，如果在同一主题下面，Button有多个背景颜色，如何设计？","user":{"login":"huangzhifei","id":5218214,"node_id":"MDQ6VXNlcjUyMTgyMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/5218214?v=4","gravatar_id":"","url":"https://api.github.com/users/huangzhifei","html_url":"https://github.com/huangzhifei","followers_url":"https://api.github.com/users/huangzhifei/followers","following_url":"https://api.github.com/users/huangzhifei/following{/other_user}","gists_url":"https://api.github.com/users/huangzhifei/gists{/gist_id}","starred_url":"https://api.github.com/users/huangzhifei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangzhifei/subscriptions","organizations_url":"https://api.github.com/users/huangzhifei/orgs","repos_url":"https://api.github.com/users/huangzhifei/repos","events_url":"https://api.github.com/users/huangzhifei/events{/privacy}","received_events_url":"https://api.github.com/users/huangzhifei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-17T10:39:44Z","updated_at":"2018-09-19T11:08:51Z","closed_at":null,"author_association":"NONE","body":"仔细看了作者写的文章，写得很好，不知道对于同一主题下面同一个抽象控件（比如UIButton）有多个背景颜色，及在不同背景颜色下面有不同的字体大小和字体颜色，该如何设计，才能让使用者做到见名知义了？\r\n\r\n思考：\r\n\r\n想过参考UIButton的构造方法中枚举一样（UIButtonTypeCustom和UIButtonTypeSystem等）在Button这个json文件下面设置对应的key和value，但是如果在同一个主题下面button超过3种以上的不同背景颜色，使用者可能需要通过看注释说明，如果在添加一个新的主题，json文件中的颜色值对应关系也不好确定。\r\n"},"comment":{"url":"https://api.github.com/repos/JyHu/EasyTheme/issues/comments/422760061","html_url":"https://github.com/JyHu/EasyTheme/issues/1#issuecomment-422760061","issue_url":"https://api.github.com/repos/JyHu/EasyTheme/issues/1","id":422760061,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjc2MDA2MQ==","user":{"login":"JyHu","id":10610507,"node_id":"MDQ6VXNlcjEwNjEwNTA3","avatar_url":"https://avatars0.githubusercontent.com/u/10610507?v=4","gravatar_id":"","url":"https://api.github.com/users/JyHu","html_url":"https://github.com/JyHu","followers_url":"https://api.github.com/users/JyHu/followers","following_url":"https://api.github.com/users/JyHu/following{/other_user}","gists_url":"https://api.github.com/users/JyHu/gists{/gist_id}","starred_url":"https://api.github.com/users/JyHu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JyHu/subscriptions","organizations_url":"https://api.github.com/users/JyHu/orgs","repos_url":"https://api.github.com/users/JyHu/repos","events_url":"https://api.github.com/users/JyHu/events{/privacy}","received_events_url":"https://api.github.com/users/JyHu/received_events","type":"User","site_admin":false},"created_at":"2018-09-19T11:08:51Z","updated_at":"2018-09-19T11:08:51Z","author_association":"OWNER","body":"> 仔细看了作者写的文章，写得很好，不知道对于同一主题下面同一个抽象控件（比如UIButton）有多个背景颜色，及在不同背景颜色下面有不同的字体大小和字体颜色，该如何设计，才能让使用者做到见名知义了？\r\n> \r\n> 思考：\r\n> \r\n> 想过参考UIButton的构造方法中枚举一样（UIButtonTypeCustom和UIButtonTypeSystem等）在Button这个json文件下面设置对应的key和value，但是如果在同一个主题下面button超过3种以上的不同背景颜色，使用者可能需要通过看注释说明，如果在添加一个新的主题，json文件中的颜色值对应关系也不好确定。\r\n\r\n"}}
{"actor":{"display_login":"JyHu"}}