forked from nkborba/KoalaJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreload.js
36 lines (30 loc) · 966 Bytes
/
preload.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
const path = require('path')
const customTitlebar = require('custom-electron-titlebar');
const { remote, shell } = require('electron')
const { Menu, MenuItem } = remote
const iconPath = "src/images/koalaicon_15.png";
const tibleBar = new customTitlebar.Titlebar({
backgroundColor: customTitlebar.Color.fromHex('#2c3e50'),
icon: iconPath,
});
const menu = new Menu()
menu.append(new MenuItem({
label: 'Authors',
submenu: [
{
label: 'Denis',
click: () => shell.openExternal('https://github.com/denisvba')
},
{
label: 'Lucas',
click: () => shell.openExternal('https://github.com/lucashtrinquinato')
},
{
label: 'Nicholas',
click: () => shell.openExternal("https://www.github.com/nkborba")
}
]
}))
tibleBar.updateMenu(menu)
tibleBar.updateIcon("src/images/koalaicon_15.png")
tibleBar.updateTitle("KOALA - You're Koalified")