File tree 5 files changed +48
-14
lines changed
5 files changed +48
-14
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,9 @@ const inkjsPackage = require('inkjs/package.json');
7
7
8
8
9
9
const electronWindowOptions = {
10
- width : 450 ,
11
- height : 250 ,
12
- minWidth : 450 ,
13
- minHeight : 250 ,
10
+ width : 340 ,
11
+ height : 270 ,
12
+ resizable : false ,
14
13
title : "About Inky"
15
14
} ;
16
15
Original file line number Diff line number Diff line change 2
2
< html >
3
3
4
4
< head >
5
- < title > About Inky</ title >
5
+ < title > About Inky</ title >
6
6
</ head >
7
7
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
+
8
39
< body >
9
40
10
- < h1 > Inky</ h1 >
41
+ < img src ="icon256.png " draggable ="false " />
42
+
43
+ < h1 > Inky</ h1 >
11
44
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 >
15
48
16
49
</ body >
17
50
18
- < script >
19
- require ( './controller.js' ) ;
20
- </ script >
51
+ < script >
52
+ require ( './controller.js' ) ;
53
+ </ script >
21
54
22
55
</ html >
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ const ipc = electron.ipcRenderer;
3
3
const $ = window . jQuery = require ( '../jquery-2.2.3.min.js' ) ;
4
4
5
5
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 ) ;
8
9
} ) ;
Original file line number Diff line number Diff line change @@ -13,4 +13,5 @@ sips -z 512 512 Icon1024.png --out Icon.iconset/icon_256x256@2x.png
13
13
sips -z 512 512 Icon1024.png --out Icon.iconset/icon_512x512.png
14
14
cp Icon1024.png Icon.iconset/icon_512x512@2x.png
15
15
iconutil -c icns Icon.iconset
16
+ cp Icon.iconset/icon_256x256.png ../app/renderer/about/icon256.png
16
17
rm -R Icon.iconset
You can’t perform that action at this time.
0 commit comments