{"action":"created","issue":{"url":"https://api.github.com/repos/ximion/appstream/issues/187","repository_url":"https://api.github.com/repos/ximion/appstream","labels_url":"https://api.github.com/repos/ximion/appstream/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/ximion/appstream/issues/187/comments","events_url":"https://api.github.com/repos/ximion/appstream/issues/187/events","html_url":"https://github.com/ximion/appstream/issues/187","id":318508025,"number":187,"title":"Accent colors","user":{"login":"cassidyjames","id":611168,"avatar_url":"https://avatars1.githubusercontent.com/u/611168?v=4","gravatar_id":"","url":"https://api.github.com/users/cassidyjames","html_url":"https://github.com/cassidyjames","followers_url":"https://api.github.com/users/cassidyjames/followers","following_url":"https://api.github.com/users/cassidyjames/following{/other_user}","gists_url":"https://api.github.com/users/cassidyjames/gists{/gist_id}","starred_url":"https://api.github.com/users/cassidyjames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cassidyjames/subscriptions","organizations_url":"https://api.github.com/users/cassidyjames/orgs","repos_url":"https://api.github.com/users/cassidyjames/repos","events_url":"https://api.github.com/users/cassidyjames/events{/privacy}","received_events_url":"https://api.github.com/users/cassidyjames/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-04-27T18:36:21Z","updated_at":"2018-04-30T15:52:55Z","closed_at":null,"author_association":"NONE","body":"Something we're using as an extension in elementary OS and Pop!_OS is a \"primary\" color, and a \"primary text\" color. \r\n\r\nhttps://github.com/cassidyjames/dippi/blob/5b22f996648bf49890b850814da62b4b5ebc4f55/data/com.github.cassidyjames.dippi.appdata.xml.in#L240\r\n\r\nThis allows clients to have a developer-picked accent color to use how they want in their UI, such as for headers or button accents. \"Primary text\" is used as a contrasting color when needed, and is planned to be validated for a minimum contrast ratio on the build server.\r\n\r\nWe do this rather than automatically picking a color from the icon (as GNOME Software does and Flathub [used to do](https://github.com/flathub/flathub.org/blob/master/get_dominant_colors.rb)), as oftentimes a developer will want to pick a nicely-contrasting color rather than the same color as in their icon.\r\n\r\nThe exact implementation could be discussed, but I feel like this could be broadly useful as a way to allow developers a little more detail that clients could then use to spruce up the presentation of apps."},"comment":{"url":"https://api.github.com/repos/ximion/appstream/issues/comments/385441845","html_url":"https://github.com/ximion/appstream/issues/187#issuecomment-385441845","issue_url":"https://api.github.com/repos/ximion/appstream/issues/187","id":385441845,"user":{"login":"hughsie","id":151380,"avatar_url":"https://avatars0.githubusercontent.com/u/151380?v=4","gravatar_id":"","url":"https://api.github.com/users/hughsie","html_url":"https://github.com/hughsie","followers_url":"https://api.github.com/users/hughsie/followers","following_url":"https://api.github.com/users/hughsie/following{/other_user}","gists_url":"https://api.github.com/users/hughsie/gists{/gist_id}","starred_url":"https://api.github.com/users/hughsie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hughsie/subscriptions","organizations_url":"https://api.github.com/users/hughsie/orgs","repos_url":"https://api.github.com/users/hughsie/repos","events_url":"https://api.github.com/users/hughsie/events{/privacy}","received_events_url":"https://api.github.com/users/hughsie/received_events","type":"User","site_admin":false},"created_at":"2018-04-30T15:52:55Z","updated_at":"2018-04-30T15:52:55Z","author_association":"COLLABORATOR","body":"> I'm proposing to draw the line, to start, with one or two colors.\r\n\r\n:)\r\n\r\nI assume those colors would be fully opaque, i.e. have no transparency?"}}
{"actor":{"display_login":"hughsie"}}