Compare commits

...

3 Commits

3 changed files with 13 additions and 6 deletions

6
app.js
View File

@ -31,14 +31,12 @@ const run = () => {
function createWindow() {
// Create the browser window.
const win = windowManager.createWindow(480, 320);
const win = windowManager.createWindow(480, 420);
win.loadFile('./html/index.html');
attachTitlebarToWindow(win);
win.webContents.on('new-window', function (e, url) {
e.preventDefault();
});
win.webContents.setWindowOpenHandler(() => "deny");
win.webContents.on('did-finish-load', function () {
if (win.webContents.getZoomFactor() != 0.9)
win.webContents.setZoomFactor(0.9)

View File

@ -6,6 +6,13 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="../assets/mdb.min.css" rel="stylesheet" />
<style>
* {
user-select: none;
-webkit-user-select: none;
}
</style>
</head>
<body class="fixed-sn mdb-skin-custom" data-spy="scroll" data-target="#scrollspy" data-offset="15"
@ -30,7 +37,7 @@
</h5>
<div class="pt-1 mb-4">
<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>
<button class="btn btn-dark btn-sm float-start" id="folder-btn">
set osu! directory

View File

@ -33,7 +33,9 @@ module.exports = {
window.webContents.setUserAgent("EZPPLauncher");
attachTitlebarToWindow(window);
window.webContents.openDevTools();
window.webContents.openDevTools({
mode: "detach"
});
return window;
},