Electron のアプリから TouchBar に UI をつくる - dev.to/jgs

MacbookPro を新調して、TouchBar が搭載されたので何かできないかな〜とぼんやりおもってたら Electron で TouchBar を操作できる API が搭載されていることを知ったので触ってみる。Chrome Extension で特定ページで TouchBar に何らかを出して便利になったりすると面白そう。

https://github.com/electron/electron/blob/master/docs/api/touch-bar.md

この辺の Doc を読みつつ。

こんな感じで書くだけで Label が表示できた。

これで

yo yo

できるボタンが作れた。

セレクタはこんな感じ。

original: https://dev.to/jgs/electron--touchbar--ui--488e-temp-slug-7596270

#Invalid date

#electron