Add updateConfig ability to other items

This commit is contained in:
Samuel Attard 2016-12-16 18:01:49 +11:00 committed by Kevin Sawicki
parent dd09c91cf2
commit 28d5c8bbde
2 changed files with 35 additions and 15 deletions

View file

@ -36,17 +36,18 @@ exports.load = (appUrl) => {
});
global.slider = slider;
global.button = new (TouchBar.Button)({
label: 'Hello World!',
// image: '/path/to/image',
backgroundColor: 'FF0000',
labelColor: '0000FF',
click: () => {
console.log('Hello World Clicked')
}
});
mainWindow.setTouchBar(new TouchBar([
new (TouchBar.Button)({
label: 'Hello World!',
// image: '/path/to/image',
backgroundColor: 'FF0000',
labelColor: '0000FF',
click: () => {
console.log('Hello World Clicked')
}
}),
button,
new (TouchBar.Label)({
label: 'This is a Label'
}),