Merge pull request #6561 from rhysd/github-electron/title-bar-style

github-electron: Added 'title-bar-style' option to BrowserWindowOptions
This commit is contained in:
Masahiro Wakame
2015-11-02 23:53:18 +09:00
2 changed files with 6 additions and 1 deletions

View File

@@ -160,7 +160,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');
});

View File

@@ -515,6 +515,7 @@ declare module GitHubElectron {
'shared-worker'?: boolean;
'direct-write'?: boolean;
'page-visibility'?: boolean;
'title-bar-style'?: string;
}
interface Rectangle {