mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
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:
@@ -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');
|
||||
});
|
||||
|
||||
|
||||
1
github-electron/github-electron.d.ts
vendored
1
github-electron/github-electron.d.ts
vendored
@@ -515,6 +515,7 @@ declare module GitHubElectron {
|
||||
'shared-worker'?: boolean;
|
||||
'direct-write'?: boolean;
|
||||
'page-visibility'?: boolean;
|
||||
'title-bar-style'?: string;
|
||||
}
|
||||
|
||||
interface Rectangle {
|
||||
|
||||
Reference in New Issue
Block a user