File tree Expand file tree Collapse file tree 3 files changed +23
-7
lines changed Expand file tree Collapse file tree 3 files changed +23
-7
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ const updateOverlay_el = document.getElementById('updateOverlay');
2
2
const startUpdateButton_el = document . getElementById ( 'startUpdateButton' ) ;
3
3
const quitUpdateButton_el = document . getElementById ( 'quitUpdateButton' ) ;
4
4
const updateControlDiv_el = document . getElementById ( 'updateControlDiv' ) ;
5
+ const downloadingText_el = document . getElementById ( 'downloadingText' ) ;
6
+ const pleaseWaitText_el = document . getElementById ( 'pleaseWaitText' ) ;
5
7
6
8
api . autoUpdaterCallback ( ( status ) => {
7
9
if ( status === 'Update Available' ) {
@@ -12,6 +14,8 @@ api.autoUpdaterCallback((status) => {
12
14
}
13
15
if ( status === 'Update Downloaded' ) {
14
16
updateControlDiv_el . style . display = 'grid' ;
17
+ downloadingText_el . textContent = 'Download Complete!' ;
18
+ pleaseWaitText_el . style . display = 'none' ;
15
19
}
16
20
} ) ;
17
21
Original file line number Diff line number Diff line change 101
101
z-index : 2 ;
102
102
}
103
103
104
+ .centered-container {
105
+ background : # 313131 ;
106
+ padding : 20px ;
107
+ border-radius : 3px ;
108
+ box-shadow : 0 0 10px rgba (0 , 0 , 0 , 0.3 );
109
+ text-align : center;
110
+ display : grid;
111
+ width : 50% ;
112
+ grid-gap : 5px ;
113
+ }
114
+
104
115
.centered-container {
105
116
width : 500px ;
106
117
background : # 313131 ;
Original file line number Diff line number Diff line change 8
8
< script src ="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.js "> </ script >
9
9
</ head >
10
10
< body >
11
- < div id ="updateOverlay " class ="overlay " style ="display: none; ">
12
- < div class ="stop-container " style ="text-align: center; ">
13
- < div style ="display: grid ">
14
- < h2 > Update Available!</ h2 >
11
+ < div id ="updateOverlay " class ="overlay " style ="text-align: center; display: none ">
12
+ < div class ="centered-container ">
13
+ < div style ="display: grid; grid-gap: 5px; ">
14
+ < h2 id ="downloadingText "> Downloading Update</ h2 >
15
+ < p id ="pleaseWaitText " style ="display: grid; text-align: center; "> Please wait...</ p >
15
16
</ div >
16
17
< div id ="updateControlDiv " style ="display: none; grid-template-columns: 1fr 1fr; grid-gap: 5px; ">
17
- < button id ="startUpdateButton " class ="input-button "> Update & Restart</ button >
18
- < button id ="quitUpdateButton " class ="input-button "> Update & Quit</ button >
19
- </ div >
18
+ < button id ="startUpdateButton " class ="input-button "> Restart Application </ button >
19
+ < button id ="quitUpdateButton " class ="input-button "> Quit</ button >
20
+ </ div >
20
21
</ div >
21
22
</ div >
22
23
You can’t perform that action at this time.
0 commit comments