mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-30 11:14:27 +08:00
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:
@@ -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');
|
||||
});
|
||||
|
||||
|
||||
Vendored
+1
@@ -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