{"action":"created","issue":{"url":"https://api.github.com/repos/electron/electron/issues/10732","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/10732/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/10732/comments","events_url":"https://api.github.com/repos/electron/electron/issues/10732/events","html_url":"https://github.com/electron/electron/issues/10732","id":263979062,"number":10732,"title":"Chrome and Electron render colors differently","user":{"login":"teleclimber","id":5631748,"avatar_url":"https://avatars0.githubusercontent.com/u/5631748?v=4","gravatar_id":"","url":"https://api.github.com/users/teleclimber","html_url":"https://github.com/teleclimber","followers_url":"https://api.github.com/users/teleclimber/followers","following_url":"https://api.github.com/users/teleclimber/following{/other_user}","gists_url":"https://api.github.com/users/teleclimber/gists{/gist_id}","starred_url":"https://api.github.com/users/teleclimber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teleclimber/subscriptions","organizations_url":"https://api.github.com/users/teleclimber/orgs","repos_url":"https://api.github.com/users/teleclimber/repos","events_url":"https://api.github.com/users/teleclimber/events{/privacy}","received_events_url":"https://api.github.com/users/teleclimber/received_events","type":"User","site_admin":false},"labels":[{"id":520323169,"url":"https://api.github.com/repos/electron/electron/labels/bug%20:beetle:","name":"bug :beetle:","color":"fbca04","default":false},{"id":97403606,"url":"https://api.github.com/repos/electron/electron/labels/platform/macOS","name":"platform/macOS","color":"c7def8","default":false},{"id":612349168,"url":"https://api.github.com/repos/electron/electron/labels/version/1.7.x","name":"version/1.7.x","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2017-10-09T18:02:28Z","updated_at":"2018-05-18T20:19:35Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"* Electron version: 1.7.8\r\n* Operating system: Mac 10.12.6\r\n\r\n### Expected behavior\r\n\r\nColors set in CSS should render the same in Electron as they do in Chrome.\r\n\r\n### Actual behavior\r\n\r\nColors look different. See image:\r\n\r\n![electron-chrome-bg](https://user-images.githubusercontent.com/5631748/31351185-be7e1456-acef-11e7-8ff8-bd48b4157fef.png)\r\n\r\n### How to reproduce\r\n\r\nSet the background-color of an element of an Electron app to `rgb( 126, 183, 253 )`. Compare the color rendered by Electron to the same color as rendered in Chrome.\r\n\r\nIn your Electron app *do not* set vibrancy, and *do not* set background color via the `BrowserWindow` API.\r\n\r\nNotice as well that if you take a screenshot and draw a rectangle of the same RGB in a drawing program it will match Chrome's color, not Electron.\r\n\r\n### Consequences\r\n\r\nPlease note this is not a trivial issue for those of us using Electron to create apps intended for design. Something that looks \"right\" to the user in an electron-based design app can look subtly different and \"wrong\" when they export their design and open it in a regular browser.\r\n\r\nThanks :)"},"comment":{"url":"https://api.github.com/repos/electron/electron/issues/comments/390321086","html_url":"https://github.com/electron/electron/issues/10732#issuecomment-390321086","issue_url":"https://api.github.com/repos/electron/electron/issues/10732","id":390321086,"user":{"login":"quadband","id":13913107,"avatar_url":"https://avatars0.githubusercontent.com/u/13913107?v=4","gravatar_id":"","url":"https://api.github.com/users/quadband","html_url":"https://github.com/quadband","followers_url":"https://api.github.com/users/quadband/followers","following_url":"https://api.github.com/users/quadband/following{/other_user}","gists_url":"https://api.github.com/users/quadband/gists{/gist_id}","starred_url":"https://api.github.com/users/quadband/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quadband/subscriptions","organizations_url":"https://api.github.com/users/quadband/orgs","repos_url":"https://api.github.com/users/quadband/repos","events_url":"https://api.github.com/users/quadband/events{/privacy}","received_events_url":"https://api.github.com/users/quadband/received_events","type":"User","site_admin":false},"created_at":"2018-05-18T20:19:35Z","updated_at":"2018-05-18T20:19:35Z","author_association":"NONE","body":"using app.commandLine.appendSwitch('force-color-profile', 'srgb'); corrected the issue for me on Windows."}}
{"actor":{"display_login":"quadband"}}