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() {
|
||||
// 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)
|
||||
|
@ -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
|
||||
|
@ -33,7 +33,9 @@ module.exports = {
|
||||
|
||||
window.webContents.setUserAgent("EZPPLauncher");
|
||||
attachTitlebarToWindow(window);
|
||||
window.webContents.openDevTools();
|
||||
window.webContents.openDevTools({
|
||||
mode: "detach"
|
||||
});
|
||||
|
||||
return window;
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user