-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathappindex.html
More file actions
117 lines (116 loc) · 3.45 KB
/
Copy pathappindex.html
File metadata and controls
117 lines (116 loc) · 3.45 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body {
margin: 0px;
user-select: none;
}
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 400;
src: url("./common/fonts/Lato-Regular.ttf");
}
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 700;
src: url("./common/fonts/Lato-Bold.ttf");
}
.application-container {
width: 420px;
height: 280px;
position: absolute;
z-index: 1;
top: 0;
left: 0;
}
.application-drag-region {
-webkit-app-region: drag;
position: absolute;
top: 0;
left: 0;
z-index: 99;
width: 100%;
height: 50px;
}
.application-background {
background-color: black;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}
.application-header {
font-family: 'Lato';
font-size: 20px;
font-weight: bold;
text-align: center;
color: white;
}
.application-buttons {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
}
.application-launch {
background-color: white;
color: black;
width: 120px;
}
.application-exit, .application-hide {
color: white;
border: 1px solid white;
width: 80px;
}
.application-launch, .application-exit, .application-hide {
font-family: 'Lato';
font-weight: bold;
font-size: 20px;
text-align: center;
border-radius: 7px;
padding: 10px;
margin-left: 10px;
margin-right: 10px;
cursor: pointer;
transition: background-color .1s ease-in-out;
}
.application-launch:hover {
background-color: #D4D4D4;
}
.application-exit:hover, .application-hide:hover {
background-color: #333333;
}
.application-logo {
margin-top: 50px;
}
</style>
</head>
<body>
<div class="application-drag-region"></div>
<div class="application-container">
<div class="application-background">
<img class="application-logo" src="./common/img/logo.png" width="255"></img>
<div class="application-header">vMix Merge Manager</div>
<div class="application-buttons">
<div class="application-launch" onclick='require("electron").shell.openExternal("http://localhost:1501/gui");'>Open GUI</div>
<div class="application-hide" onclick="hideWindow()">Hide</div>
<div class="application-exit" onclick="window.close()">Exit</div>
</div>
</div>
</div>
<script>
function hideWindow() {
const { BrowserWindow } = require('electron').remote;
BrowserWindow.getFocusedWindow().hide();
}
</script>
</body>
</html>