Meriadec Pillet
7 years ago
committed by
GitHub
12 changed files with 176 additions and 33 deletions
@ -0,0 +1,30 @@ |
|||
import { app, Menu } from 'electron' |
|||
|
|||
const template = [ |
|||
...(process.platform === 'darwin' |
|||
? [ |
|||
{ |
|||
label: app.getName(), |
|||
submenu: [ |
|||
{ role: 'hide' }, |
|||
{ role: 'hideothers' }, |
|||
{ role: 'unhide' }, |
|||
{ type: 'separator' }, |
|||
{ role: 'quit' }, |
|||
], |
|||
}, |
|||
{ |
|||
role: 'window', |
|||
submenu: [ |
|||
{ role: 'close' }, |
|||
{ role: 'minimize' }, |
|||
{ role: 'zoom' }, |
|||
{ type: 'separator' }, |
|||
{ role: 'front' }, |
|||
], |
|||
}, |
|||
] |
|||
: []), |
|||
] |
|||
|
|||
export default Menu.buildFromTemplate(template) |
@ -0,0 +1,36 @@ |
|||
<html> |
|||
<head> |
|||
<style> |
|||
* { |
|||
box-sizing: border-box; |
|||
cursor: default; |
|||
margin: 0; |
|||
padding: 0; |
|||
user-select: none; |
|||
} |
|||
|
|||
body { |
|||
background: white; |
|||
} |
|||
|
|||
#app { |
|||
-webkit-app-region: drag; |
|||
align-items: center; |
|||
display: flex; |
|||
flex-direction: column; |
|||
justify-content: center; |
|||
min-height: 100vh; |
|||
} |
|||
|
|||
#app video { |
|||
height: 100%; |
|||
width: 100%; |
|||
} |
|||
</style> |
|||
</head> |
|||
<body> |
|||
<div id="app"> |
|||
<video autoplay loop muted src="./videos/loader.mp4" /> |
|||
</div> |
|||
</body> |
|||
</html> |
Binary file not shown.
Loading…
Reference in new issue