-
Notifications
You must be signed in to change notification settings - Fork 2
/
renderer.js
81 lines (61 loc) · 1.78 KB
/
renderer.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
const { app, shell, ipcRenderer } = require('electron')
ipcRenderer.on('load-uniform', (event, data) => {
$("#load").trigger("click")
});
ipcRenderer.on('save-uniform', (event, data) => {
$("#save").trigger("click")
});
ipcRenderer.on('save-cap', (event, data) => {
$("#saveCap").trigger("click")
});
ipcRenderer.on('save-pants', (event, data) => {
$("#savePants").trigger("click")
});
ipcRenderer.on('save-socks', (event, data) => {
$("#saveSocks").trigger("click")
});
ipcRenderer.on('save-jersey', (event, data) => {
$("#saveJersey").trigger("click")
});
ipcRenderer.on('save-font', (event, data) => {
$("#saveFont").trigger("click")
});
ipcRenderer.on('save-swatches', (event, data) => {
$("#saveSwatches").trigger("click")
})
ipcRenderer.on('load-swatches', (event, data) => {
$("#loadSwatches").trigger("click")
})
ipcRenderer.on('about', (event, data) => {
$("#aboutUniformMaker").trigger("click")
});
ipcRenderer.on('copy', (event, data) => {
$("#copy").trigger("click")
});
ipcRenderer.on('paste', (event, data) => {
$("#paste").trigger("click")
});
ipcRenderer.on('prefs', (event, data) => {
$("#prefsButton").trigger("click")
});
ipcRenderer.on('update', (event, data) => {
$("#checkForUpdates").trigger("click")
});
ipcRenderer.on('updateFonts', (event, data) => {
$("#localFontFolder").trigger("click")
})
ipcRenderer.on('openFontFolder', (event, data) => {
$("#openFontFolder").trigger("click")
})
ipcRenderer.on('install-uniform', (event, data) => {
$("#installUniform").trigger("click")
})
ipcRenderer.on('show-spinner', (event, data) => {
showOverlay("TESTING 123")
})
ipcRenderer.on('close-spinner', (event, data) => {
hideOverlay()
})
ipcRenderer.on('error-message', (event, data) => {
hideOverlay()
})