Add 'title-bar-style' option to GitHubElectron.BrowserWindow

The documentation is below:

https://github.com/atom/electron/blob/master/docs/api/browser-window.md#new-browserwindowoptions
This commit is contained in:
rhysd
2015-11-01 21:29:43 +09:00
parent eb59a40d3c
commit fe9e124f69
2 changed files with 6 additions and 1 deletions
@@ -145,7 +145,11 @@ ipc.on('online-status-changed', (event: any, status: any) => {
// https://github.com/atom/electron/blob/master/docs/api/synopsis.md
app.on('ready', () => {
window = new BrowserWindow({ width: 800, height: 600 });
window = new BrowserWindow({
width: 800,
height: 600,
'title-bar-style': 'hidden-inset',
});
window.loadUrl('https://github.com');
});
+1
View File
@@ -515,6 +515,7 @@ declare module GitHubElectron {
'shared-worker'?: boolean;
'direct-write'?: boolean;
'page-visibility'?: boolean;
'title-bar-style'?: string;
}
interface Rectangle {