Change demo touchbar values

This commit is contained in:
Samuel Attard 2016-11-28 21:46:32 +11:00 committed by Kevin Sawicki
parent c92c4138a8
commit 2bc45c8665

View file

@ -28,8 +28,8 @@ exports.load = (appUrl) => {
mainWindow.setTouchBar(new TouchBar([ mainWindow.setTouchBar(new TouchBar([
new (TouchBar.Button)({ new (TouchBar.Button)({
label: 'Hello World!', label: 'Hello World!',
backgroundColor: "DDDDDD", backgroundColor: "FF0000",
labelColor: "000000", labelColor: "0000FF",
click: () => { click: () => {
console.log('Hello World Clicked') console.log('Hello World Clicked')
} }
@ -46,6 +46,7 @@ exports.load = (appUrl) => {
label: 'Slider 123', label: 'Slider 123',
minValue: 50, minValue: 50,
maxValue: 1000, maxValue: 1000,
initialValue: 300,
change: (newVal) => { change: (newVal) => {
console.log('Slider was changed', newVal, typeof newVal) console.log('Slider was changed', newVal, typeof newVal)
} }