Skip to content

Commit 6159b3b

Browse files
committed
Complete passing data for version numbers and styling in about window
1 parent 5697139 commit 6159b3b

File tree

5 files changed

+48
-14
lines changed

5 files changed

+48
-14
lines changed

app/main-process/aboutWindow.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ const inkjsPackage = require('inkjs/package.json');
77

88

99
const electronWindowOptions = {
10-
width: 450,
11-
height: 250,
12-
minWidth: 450,
13-
minHeight: 250,
10+
width: 340,
11+
height: 270,
12+
resizable: false,
1413
title: "About Inky"
1514
};
1615

app/renderer/about/about.html

+41-8
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,54 @@
22
<html>
33

44
<head>
5-
<title>About Inky</title>
5+
<title>About Inky</title>
66
</head>
77

8+
<style>
9+
body {
10+
text-align: center;
11+
background: #FDFDFD;
12+
}
13+
14+
img {
15+
width: 100px;
16+
height: 100px;
17+
margin-top: 20px;
18+
-webkit-user-select: none;
19+
}
20+
21+
h1, p {
22+
font-family: Helvetica, sans-serif;
23+
}
24+
25+
h1 {
26+
font-size: 12pt;
27+
-webkit-user-select: none;
28+
cursor: default;
29+
}
30+
31+
p {
32+
font-size: 9pt;
33+
padding: 0;
34+
margin: 4px;
35+
}
36+
37+
</style>
38+
839
<body>
940

10-
<h1>Inky</h1>
41+
<img src="icon256.png" draggable="false" />
42+
43+
<h1>Inky</h1>
1144

12-
<p id="version-inky"></p>
13-
<p id="version-ink"></p>
14-
<p id="version-inkjs"></p>
45+
<p id="version-inky"></p>
46+
<p id="version-ink"></p>
47+
<p id="version-inkjs"></p>
1548

1649
</body>
1750

18-
<script>
19-
require('./controller.js');
20-
</script>
51+
<script>
52+
require('./controller.js');
53+
</script>
2154

2255
</html>

app/renderer/about/controller.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const ipc = electron.ipcRenderer;
33
const $ = window.jQuery = require('../jquery-2.2.3.min.js');
44

55
ipc.on("set-about-data", (event, data) => {
6-
console.log("Receiving");
7-
$("body").text(JSON.stringify(data));
6+
$("#version-inky").text("Inky version: "+data.inkyVersion);
7+
$("#version-ink").text("ink version: "+data.inkVersion);
8+
$("#version-inkjs").text("inkjs version: "+data.inkjsVersion);
89
});

app/renderer/about/icon256.png

34 KB
Loading

resources/makeIcns.command

+1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ sips -z 512 512 Icon1024.png --out Icon.iconset/icon_256x256@2x.png
1313
sips -z 512 512 Icon1024.png --out Icon.iconset/icon_512x512.png
1414
cp Icon1024.png Icon.iconset/icon_512x512@2x.png
1515
iconutil -c icns Icon.iconset
16+
cp Icon.iconset/icon_256x256.png ../app/renderer/about/icon256.png
1617
rm -R Icon.iconset

0 commit comments

Comments
 (0)