-
-
Save mxmou/cb865ea440a2bbbd21673fa40cf39bb4 to your computer and use it in GitHub Desktop.
Missing window animation example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Hello World!</title> | |
<style> | |
body { | |
margin: 0; | |
} | |
h1 { | |
margin: 0; | |
padding: 8px; | |
-webkit-app-region: drag; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>Title</h1> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {app, BrowserWindow} = require("electron"); | |
app.whenReady().then(() => { | |
const mainWindow = new BrowserWindow({ | |
width: 800, | |
height: 600, | |
frame: false, | |
}); | |
mainWindow.loadFile("index.html"); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "easy-boundary-obey-o1imx", | |
"productName": "easy-boundary-obey-o1imx", | |
"description": "My Electron application description", | |
"keywords": [], | |
"main": "./main.js", | |
"version": "1.0.0", | |
"author": "qwxyp", | |
"scripts": { | |
"start": "electron ." | |
}, | |
"dependencies": {}, | |
"devDependencies": { | |
"electron": "17.0.1" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@bruce