Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
Make "Custom CSS" and "Theme Customizer" windows resizable
  • Loading branch information
amanharwara committed Mar 21, 2019
1 parent 97e06b9 commit 37f978b
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ function createWindow(id) {
frame: !settings.get('customTitlebar.value'),
backgroundColor: '#282C34',
titleBarStyle: 'hidden',
width: settings.get('customTitlebar.value') ? 400 : 450,
height: settings.get('customTitlebar.value') ? 349 : 400,
width: 450,
height: 400,
resizable: false,
maximizable: false,
minimizable: false,
Expand Down Expand Up @@ -362,9 +362,12 @@ function createWindow(id) {
titleBarStyle: 'hidden',
parent: mainWindow,
modal: process.platform === 'darwin' ? false : true,
resizable: false,
resizable: true,
width: 600,
height: 547,
minWidth: 515,
height: 535,
minHeight: 535,
maxHeight: 535,
webPreferences: {
nodeIntegration: true
}
Expand Down Expand Up @@ -392,9 +395,11 @@ function createWindow(id) {
titleBarStyle: 'hidden',
parent: mainWindow,
modal: process.platform === 'darwin' ? false : true,
resizable: false,
resizable: true,
width: 600,
minWidth: 600,
height: 545,
minHeight: 420,
webPreferences: {
nodeIntegration: true
}
Expand Down

0 comments on commit 37f978b

Please sign in to comment.