initial commit

This commit is contained in:
2022-10-16 15:54:29 +02:00
commit d50cdd2a77
9 changed files with 259 additions and 0 deletions

22
preload/preload.js Normal file
View File

@@ -0,0 +1,22 @@
const { ipcRenderer } = require('electron');
const { Titlebar, Color } = require('custom-electron-titlebar');
let titlebar;
window.addEventListener('DOMContentLoaded', () => {
titlebar = new Titlebar({
backgroundColor: Color.fromHex("#303030"),
itemBackgroundColor: Color.fromHex("#121212"),
icon: "https://ez-pp.farm/static/logos/circle.png",
menu: null,
maximizable: false
});
titlebar.updateTitle("EZPPLauncher");
const $ = require('jquery');
$("#folder-btn").on('click', async () => {
const folderLoc = await ipcRenderer.invoke('open-folder-dialog');
alert(folderLoc);
});
})