Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions main/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
},
{
Expand Down
29 changes: 29 additions & 0 deletions src/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../output/tailwind.css">
</head>
<body class="m-4 bg-indigo-600 text-white">
<div class="flex space-x-8">
<img width="128" height="128" src="../assets/icon.png">
<h1 class="text-7xl">Catalyst</h1>
</div>
<div class="text-center text-2xl">
<label for="release">Release</label>
<span id="release"></span>
<br />
<label for="license">License:</label>
<span id="license"></span>
</div>
<script>
fetch('../package.json')
.then((response) => response.json())
.then((json) => {
window.release.innerText = json.version;
window.license.innerText = json.license;
});
</script>
</body>
</html>