mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-09-28 04:19:01 +00:00
Merge pull request #188 from priezz/patch-1
Add an option to hide window frame and controls
This commit is contained in:
commit
ece19efba2
@ -25,6 +25,7 @@ function createMainWindow(options, onAppQuit, setDockBadge) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const mainWindow = new BrowserWindow({
|
const mainWindow = new BrowserWindow({
|
||||||
|
frame: !options.hideWindowFrame,
|
||||||
width: mainWindowState.width,
|
width: mainWindowState.width,
|
||||||
height: mainWindowState.height,
|
height: mainWindowState.height,
|
||||||
x: mainWindowState.x,
|
x: mainWindowState.x,
|
||||||
|
10
docs/api.md
10
docs/api.md
@ -246,6 +246,16 @@ Makes the packaged app start in full screen.
|
|||||||
|
|
||||||
Makes the packaged app start maximized.
|
Makes the packaged app start maximized.
|
||||||
|
|
||||||
|
|
||||||
|
#### [hide-window-frame]
|
||||||
|
|
||||||
|
```
|
||||||
|
--hide-window-frame
|
||||||
|
```
|
||||||
|
|
||||||
|
Disable window frame and controls
|
||||||
|
|
||||||
|
|
||||||
#### [verbose]
|
#### [verbose]
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -106,6 +106,7 @@ function selectAppArgs(options) {
|
|||||||
insecure: options.insecure,
|
insecure: options.insecure,
|
||||||
flashPluginDir: options.flashPluginDir,
|
flashPluginDir: options.flashPluginDir,
|
||||||
fullScreen: options.fullScreen,
|
fullScreen: options.fullScreen,
|
||||||
|
hideWindowFrame: options.hideWindowFrame,
|
||||||
maximize: options.maximize,
|
maximize: options.maximize,
|
||||||
disableContextMenu: options.disableContextMenu
|
disableContextMenu: options.disableContextMenu
|
||||||
};
|
};
|
||||||
|
@ -41,6 +41,7 @@ if (require.main === module) {
|
|||||||
.option('--inject <value>', 'path to a file to be injected', collect, [])
|
.option('--inject <value>', 'path to a file to be injected', collect, [])
|
||||||
.option('--full-screen', 'if the app should always be started in full screen')
|
.option('--full-screen', 'if the app should always be started in full screen')
|
||||||
.option('--maximize', 'if the app should always be started maximized')
|
.option('--maximize', 'if the app should always be started maximized')
|
||||||
|
.option('--hide-window-frame', 'disable window frame and controls')
|
||||||
.option('--verbose', 'if verbose logs should be displayed')
|
.option('--verbose', 'if verbose logs should be displayed')
|
||||||
.option('--disable-context-menu', 'disable the context menu')
|
.option('--disable-context-menu', 'disable the context menu')
|
||||||
.parse(process.argv);
|
.parse(process.argv);
|
||||||
|
@ -55,6 +55,7 @@ function optionsFactory(inpOptions, callback) {
|
|||||||
ignore: 'src',
|
ignore: 'src',
|
||||||
fullScreen: inpOptions.fullScreen || false,
|
fullScreen: inpOptions.fullScreen || false,
|
||||||
maximize: inpOptions.maximize || false,
|
maximize: inpOptions.maximize || false,
|
||||||
|
hideWindowFrame: inpOptions.hideWindowFrame,
|
||||||
verbose: inpOptions.verbose,
|
verbose: inpOptions.verbose,
|
||||||
disableContextMenu: inpOptions.disableContextMenu
|
disableContextMenu: inpOptions.disableContextMenu
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user