This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
app, BrowserWindow, TouchBar, nativeImage, ipcMain, | |
} = require('electron'); | |
const { TouchBarScrubber, TouchBarButton } = TouchBar; | |
const image = nativeImage.createFromPath('./m.png').resize({ height: 30 }); | |
app.on('ready', () => { | |
const win = new BrowserWindow({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
app, BrowserWindow, TouchBar, nativeImage, | |
} = require('electron'); | |
const { TouchBarScrubber, TouchBarButton } = TouchBar; | |
const image = nativeImage.createFromPath('./m.png').resize({ height: 30 }); | |
app.on('ready', () => { | |
const win = new BrowserWindow({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
app, BrowserWindow, TouchBar, nativeImage, | |
} = require('electron'); | |
const { TouchBarPopover, TouchBarButton } = TouchBar; | |
const image = nativeImage.createFromPath('./m.png').resize({ height: 30 }); | |
app.on('ready', () => { | |
const win = new BrowserWindow({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
app, BrowserWindow, TouchBar, nativeImage, | |
} = require('electron'); | |
const { TouchBarSegmentedControl } = TouchBar; | |
const image = nativeImage.createFromPath('./m.png').resize({ height: 30 }); | |
app.on('ready', () => { | |
const win = new BrowserWindow({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
app, BrowserWindow, TouchBar, | |
} = require('electron'); | |
const { TouchBarColorPicker } = TouchBar; | |
app.on('ready', () => { | |
const win = new BrowserWindow({ | |
width: 800, | |
height: 600, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
app, BrowserWindow, TouchBar, | |
} = require('electron'); | |
const { TouchBarGroup, TouchBarSpacer, TouchBarLabel } = TouchBar; | |
app.on('ready', () => { | |
const win = new BrowserWindow({ | |
width: 800, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
app, BrowserWindow, TouchBar, | |
} = require('electron'); | |
const { TouchBarSlider } = TouchBar; | |
app.on('ready', () => { | |
const win = new BrowserWindow({ | |
width: 800, | |
height: 600, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
app, BrowserWindow, TouchBar, nativeImage, | |
} = require('electron'); | |
const { TouchBarButton } = TouchBar; | |
app.on('ready', () => { | |
const win = new BrowserWindow({ | |
width: 800, | |
height: 600, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { app, BrowserWindow, TouchBar } = require('electron'); | |
const { TouchBarLabel, TouchBarButton, TouchBarSpacer } = TouchBar; | |
const button = new TouchBarButton({ | |
label: `Count: ${counter}`, | |
accessibilityLabel: 'Counter', | |
backgroundColor: '#6ab04c', | |
click: () => { | |
update(); | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { app, BrowserWindow } = require('electron') | |
function createWindow () { | |
// Create the browser window. | |
let win = new BrowserWindow({ | |
width: 800, | |
height: 600, | |
webPreferences: { | |
nodeIntegration: true | |
} |