Compare commits
3 Commits
c648cfd2b3
...
1c6c9a2d6e
Author | SHA1 | Date | |
---|---|---|---|
1c6c9a2d6e | |||
b84ddaf1b7 | |||
3baa262ca6 |
6
app.js
6
app.js
@ -31,14 +31,12 @@ const run = () => {
|
|||||||
|
|
||||||
function createWindow() {
|
function createWindow() {
|
||||||
// Create the browser window.
|
// Create the browser window.
|
||||||
const win = windowManager.createWindow(480, 320);
|
const win = windowManager.createWindow(480, 420);
|
||||||
|
|
||||||
win.loadFile('./html/index.html');
|
win.loadFile('./html/index.html');
|
||||||
|
|
||||||
attachTitlebarToWindow(win);
|
attachTitlebarToWindow(win);
|
||||||
win.webContents.on('new-window', function (e, url) {
|
win.webContents.setWindowOpenHandler(() => "deny");
|
||||||
e.preventDefault();
|
|
||||||
});
|
|
||||||
win.webContents.on('did-finish-load', function () {
|
win.webContents.on('did-finish-load', function () {
|
||||||
if (win.webContents.getZoomFactor() != 0.9)
|
if (win.webContents.getZoomFactor() != 0.9)
|
||||||
win.webContents.setZoomFactor(0.9)
|
win.webContents.setZoomFactor(0.9)
|
||||||
|
@ -6,6 +6,13 @@
|
|||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<link href="../assets/mdb.min.css" rel="stylesheet" />
|
<link href="../assets/mdb.min.css" rel="stylesheet" />
|
||||||
|
|
||||||
|
<style>
|
||||||
|
* {
|
||||||
|
user-select: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="fixed-sn mdb-skin-custom" data-spy="scroll" data-target="#scrollspy" data-offset="15"
|
<body class="fixed-sn mdb-skin-custom" data-spy="scroll" data-target="#scrollspy" data-offset="15"
|
||||||
@ -30,7 +37,7 @@
|
|||||||
</h5>
|
</h5>
|
||||||
<div class="pt-1 mb-4">
|
<div class="pt-1 mb-4">
|
||||||
<button id="launch-btn" class="btn btn-primary btn-lg btn-block"
|
<button id="launch-btn" class="btn btn-primary btn-lg btn-block"
|
||||||
type="button" style="background-color:#d6016f">Launch</button>
|
type="button" style="background-color:#d6016f" disabled>Launch</button>
|
||||||
</div>
|
</div>
|
||||||
<button class="btn btn-dark btn-sm float-start" id="folder-btn">
|
<button class="btn btn-dark btn-sm float-start" id="folder-btn">
|
||||||
set osu! directory
|
set osu! directory
|
||||||
|
@ -33,7 +33,9 @@ module.exports = {
|
|||||||
|
|
||||||
window.webContents.setUserAgent("EZPPLauncher");
|
window.webContents.setUserAgent("EZPPLauncher");
|
||||||
attachTitlebarToWindow(window);
|
attachTitlebarToWindow(window);
|
||||||
window.webContents.openDevTools();
|
window.webContents.openDevTools({
|
||||||
|
mode: "detach"
|
||||||
|
});
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user