Skip to content

Commit

Permalink
style: make window not maximized by default and add min size
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii Shartsev <[email protected]>
  • Loading branch information
ShGKme committed Mar 2, 2023
1 parent ec0f341 commit 252e2ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/talk/talk.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ const { BrowserWindow } = require('electron')
*/
function createTalkWindow() {
const window = new BrowserWindow({
width: 800,
height: 600,
width: 1280,
height: 800,
minWidth: 600,
minHeight: 400,
show: false,
backgroundColor: '#171717',
autoHideMenuBar: true,
Expand All @@ -42,9 +44,7 @@ function createTalkWindow() {
// }

window.once('ready-to-show', () => {
window.maximize()
window.show()
//window.webContents.openDevTools({ mode: 'detach' })
})

window.loadURL(TALK_WINDOW_WEBPACK_ENTRY)
Expand Down

0 comments on commit 252e2ba

Please sign in to comment.