1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00
Files
Boostnote/lib/touchbar-menu.js
Mika Andrianarijaona 07e810a231 init touchbar menu
2018-08-22 10:58:53 +02:00

27 lines
474 B
JavaScript

const {TouchBar} = require('electron')
const {TouchBarButton, TouchBarSpacer} = TouchBar
const allNotes = new TouchBarButton({
label: '📒',
click: () => {}
})
const starredNotes = new TouchBarButton({
label: '⭐️',
click: () => {}
})
const trash = new TouchBarButton({
label: '🗑',
click: () => {}
})
module.exports = new TouchBar([
allNotes,
new TouchBarSpacer({size: 'small'}),
starredNotes,
new TouchBarSpacer({size: 'small'}),
trash
])