{"action":"created","issue":{"url":"https://api.github.com/repos/electron/electron/issues/7781","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/7781/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/7781/comments","events_url":"https://api.github.com/repos/electron/electron/issues/7781/events","html_url":"https://github.com/electron/electron/issues/7781","id":185814703,"number":7781,"title":"Support MacBook Touch Bar API","user":{"login":"kevinsawicki","id":671378,"avatar_url":"https://avatars.githubusercontent.com/u/671378?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinsawicki","html_url":"https://github.com/kevinsawicki","followers_url":"https://api.github.com/users/kevinsawicki/followers","following_url":"https://api.github.com/users/kevinsawicki/following{/other_user}","gists_url":"https://api.github.com/users/kevinsawicki/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsawicki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsawicki/subscriptions","organizations_url":"https://api.github.com/users/kevinsawicki/orgs","repos_url":"https://api.github.com/users/kevinsawicki/repos","events_url":"https://api.github.com/users/kevinsawicki/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsawicki/received_events","type":"User","site_admin":true},"labels":[{"id":35575880,"url":"https://api.github.com/repos/electron/electron/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":97403606,"url":"https://api.github.com/repos/electron/electron/labels/macOS","name":"macOS","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-28T00:48:49Z","updated_at":"2016-10-28T08:00:27Z","closed_at":null,"body":"Tracking issue for adding touch bar API support to Electron on macOS 👉 ⌨️   💻  🍎 \r\n\r\n- [NSTouchBar docs](https://developer.apple.com/reference/appkit/nstouchbar?language=objc)\r\n- [Design video](http://images.apple.com/media/us/macbook-pro/2016/b4a9efaa_6fe5_4075_a9d0_8e4592d6146c/films/design/macbook-pro-design-tft-cc-us-20161026_1536x640h.mp4)\r\n- [NSTouchBar catalog](https://developer.apple.com/library/content/samplecode/NSTouchBarCatalog/Introduction/Intro.html)\r\n- [Touch bar example app](https://developer.apple.com/library/content/samplecode/ToolbarSample/Introduction/Intro.html)\r\n\r\nPlease feel free to leave comments here about API ideas, usage patterns, etc."},"comment":{"url":"https://api.github.com/repos/electron/electron/issues/comments/256860149","html_url":"https://github.com/electron/electron/issues/7781#issuecomment-256860149","issue_url":"https://api.github.com/repos/electron/electron/issues/7781","id":256860149,"user":{"login":"jakubzitny","id":3315662,"avatar_url":"https://avatars.githubusercontent.com/u/3315662?v=3","gravatar_id":"","url":"https://api.github.com/users/jakubzitny","html_url":"https://github.com/jakubzitny","followers_url":"https://api.github.com/users/jakubzitny/followers","following_url":"https://api.github.com/users/jakubzitny/following{/other_user}","gists_url":"https://api.github.com/users/jakubzitny/gists{/gist_id}","starred_url":"https://api.github.com/users/jakubzitny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakubzitny/subscriptions","organizations_url":"https://api.github.com/users/jakubzitny/orgs","repos_url":"https://api.github.com/users/jakubzitny/repos","events_url":"https://api.github.com/users/jakubzitny/events{/privacy}","received_events_url":"https://api.github.com/users/jakubzitny/received_events","type":"User","site_admin":false},"created_at":"2016-10-28T08:00:27Z","updated_at":"2016-10-28T08:00:27Z","body":"It should probably have a similar API as `menu` has\r\n- importing `TouchBar` from `electron` in main process and from `remote` in renderer\r\n- creating a custom instance with `new TouchBar()`\r\n- setting it with static method `TouchBar.setApplicationTouchBar(touchBar)`\r\n\r\nThe custom instance should have setters for `customizationIdentifier`, `defaultItemIdentifiers`, `customizationAllowedItemIdentifiers` and `principalItemIdentifier`.\r\n\r\nI am not sure how to add items from the Catalog. Maybe something like `MenuItem`'s types such as `checkbox` or `separator` it should just be enumerated with string ids.\r\n\r\nWhat do you think?\r\n"}}
{"actor":{"display_login":"jakubzitny"}}