From 17f32b2c85a80d513aa74ee497a468affaae6ab8 Mon Sep 17 00:00:00 2001 From: Jan Hovancik Date: Sat, 9 Jan 2021 15:29:50 +0100 Subject: [PATCH 1/2] Allow for biger Preferences Window 90% of screen size --- app/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main.js b/app/main.js index c8d0baa67..e54078241 100644 --- a/app/main.js +++ b/app/main.js @@ -752,9 +752,9 @@ function createPreferencesWindow () { return } const modalPath = path.join('file://', __dirname, '/preferences.html') - const maxHeight = (electron.screen + const maxHeight = electron.screen .getDisplayNearestPoint(electron.screen.getCursorScreenPoint()) - .workAreaSize.height - 530) / 2.0 + 490 + .workAreaSize.height * 0.9 preferencesWin = new BrowserWindow({ autoHideMenuBar: true, icon: windowIconPath(), From f363a219baf7ca93843b1f1c77c1c3498bffc333 Mon Sep 17 00:00:00 2001 From: Jan Hovancik Date: Sat, 9 Jan 2021 15:30:22 +0100 Subject: [PATCH 2/2] Improve macOS Preferences window size --- app/preferences.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/preferences.js b/app/preferences.js index df0387bd2..adaf5e512 100644 --- a/app/preferences.js +++ b/app/preferences.js @@ -286,7 +286,7 @@ function setWindowHeight () { const classes = document.querySelector('body').classList const height = document.querySelector('body').scrollHeight if (classes.contains('darwin')) { - remote.getCurrentWindow().setSize(bounds.width, height + 22) + remote.getCurrentWindow().setSize(bounds.width, height + 32) } else if (classes.contains('win32')) { remote.getCurrentWindow().setSize(bounds.width, height + 40) }