From 2f769bdb82c316df284e561891b67aae01b34585 Mon Sep 17 00:00:00 2001 From: Alexandr Priezzhev Date: Sun, 17 Apr 2016 00:56:40 +0200 Subject: [PATCH 1/6] Add an option to hide window frame --- app/src/components/mainWindow/mainWindow.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/components/mainWindow/mainWindow.js b/app/src/components/mainWindow/mainWindow.js index 27e4085..60621ee 100644 --- a/app/src/components/mainWindow/mainWindow.js +++ b/app/src/components/mainWindow/mainWindow.js @@ -25,6 +25,7 @@ function createMainWindow(options, onAppQuit, setDockBadge) { }); const mainWindow = new BrowserWindow({ + frame: !options.hideWindowFrame, width: mainWindowState.width, height: mainWindowState.height, x: mainWindowState.x, From eb03d801e377502b3ae5ace18ccdc0f226915aae Mon Sep 17 00:00:00 2001 From: Alexandr Priezzhev Date: Sun, 17 Apr 2016 01:01:46 +0200 Subject: [PATCH 2/6] Add an option to hide window frame --- docs/api.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/api.md b/docs/api.md index e9f2b5d..e3ee42a 100644 --- a/docs/api.md +++ b/docs/api.md @@ -246,6 +246,16 @@ Makes the packaged app start in full screen. Makes the packaged app start maximized. + +#### [hide-window-frame] + +``` +--hide-window-frame +``` + +Disable window frame and controls + + #### [verbose] ``` From fd67f17129c2ae576effa2504c9278806ff236e7 Mon Sep 17 00:00:00 2001 From: Alexandr Priezzhev Date: Sun, 17 Apr 2016 01:04:10 +0200 Subject: [PATCH 3/6] Add an option to hide window frame --- src/build/buildApp.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/build/buildApp.js b/src/build/buildApp.js index afc7872..580a5ec 100644 --- a/src/build/buildApp.js +++ b/src/build/buildApp.js @@ -106,6 +106,7 @@ function selectAppArgs(options) { insecure: options.insecure, flashPluginDir: options.flashPluginDir, fullScreen: options.fullScreen, + hideWindowFrame: options.hideWindowFrame, maximize: options.maximize }; } From 511c5f784e55b272a0929f62f9b49d5224ecda88 Mon Sep 17 00:00:00 2001 From: Alexandr Priezzhev Date: Sun, 17 Apr 2016 01:05:17 +0200 Subject: [PATCH 4/6] Add an option to hide window frame --- src/cli.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cli.js b/src/cli.js index c795d4f..d2a8fea 100755 --- a/src/cli.js +++ b/src/cli.js @@ -41,6 +41,7 @@ if (require.main === module) { .option('--inject ', 'path to a file to be injected', collect, []) .option('--full-screen', 'if the app should always be started in full screen') .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') .parse(process.argv); From c1b7ef9a6017e42c9461db7b1cb8fec49e3ed67c Mon Sep 17 00:00:00 2001 From: Alexandr Priezzhev Date: Sun, 17 Apr 2016 01:06:42 +0200 Subject: [PATCH 5/6] Add an option to hide window frame --- src/options/optionsMain.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/options/optionsMain.js b/src/options/optionsMain.js index df0f603..0bd8865 100644 --- a/src/options/optionsMain.js +++ b/src/options/optionsMain.js @@ -55,6 +55,7 @@ function optionsFactory(inpOptions, callback) { ignore: 'src', fullScreen: inpOptions.fullScreen || false, maximize: inpOptions.maximize || false, + hideWindowFrame: inpOptions.hideWindowFrame, verbose: inpOptions.verbose }; From f7240fb7485b637f063a0b4063889aa11c1e049e Mon Sep 17 00:00:00 2001 From: Alexandr Priezzhev Date: Sun, 17 Apr 2016 01:32:52 +0200 Subject: [PATCH 6/6] Update mainWindow.js --- app/src/components/mainWindow/mainWindow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/components/mainWindow/mainWindow.js b/app/src/components/mainWindow/mainWindow.js index 60621ee..907b828 100644 --- a/app/src/components/mainWindow/mainWindow.js +++ b/app/src/components/mainWindow/mainWindow.js @@ -25,7 +25,7 @@ function createMainWindow(options, onAppQuit, setDockBadge) { }); const mainWindow = new BrowserWindow({ - frame: !options.hideWindowFrame, + frame: !options.hideWindowFrame, width: mainWindowState.width, height: mainWindowState.height, x: mainWindowState.x,