From ff9e608eb6ce5e00e0902fbe18144e9f1883280f Mon Sep 17 00:00:00 2001 From: jdev082 Date: Sun, 8 Oct 2023 10:38:27 -0500 Subject: [PATCH] feat: initial implementation --- main/main.js | 19 ++++++++++++------- src/about.html | 29 +++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 7 deletions(-) create mode 100644 src/about.html diff --git a/main/main.js b/main/main.js index 4d4a85c4..990dcda9 100644 --- a/main/main.js +++ b/main/main.js @@ -96,19 +96,24 @@ async function checkForUpdate(windowToDialog) { let ver = app.getVersion(); let appName = app.getName(); -function aboutApp() { - dialog.showMessageBoxSync({ - title: `About ${appName}`, - message: `${appName} ${ver}`, - buttons: ['OK'], - icon: './assets/icon.png' +function createAboutWindow() { + aboutWindow = new BrowserWindow({ + minWidth: 600, + minHeight: 400, + width: 600, + height: 400, + title: 'About Catalyst', + icon: path.join(__dirname, '../assets/icon.png'), }); + aboutWindow.loadFile('./src/about.html'); + aboutWindow.setMenuBarVisibility(false); + } const template = [{ label: 'About', click: function () { - aboutApp(); + createAboutWindow(); } }, { diff --git a/src/about.html b/src/about.html new file mode 100644 index 00000000..22fe44c8 --- /dev/null +++ b/src/about.html @@ -0,0 +1,29 @@ + + + + + + + + +
+ +

Catalyst

+
+
+ + +
+ + +
+ + + \ No newline at end of file