Change demo touchbar values
This commit is contained in:
parent
c92c4138a8
commit
2bc45c8665
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue