Skip to content

Commit 6175675

Browse files
committed
UI improvements
1 parent 084ffda commit 6175675

4 files changed

Lines changed: 28 additions & 8 deletions

File tree

UI/electron.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ function createWindow(){
4242
windowObj.on('focus', () => {
4343
windowObj.setBackgroundColor('#00000000')
4444
})
45+
const [w, h] = windowObj.getSize();
46+
windowObj.setSize(w, h);
4547
}
4648

4749

UI/handler.js

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,22 @@ function colormode(pref){
3434
document.getElementById('sub-select1').style.backgroundColor = 'black'
3535
document.getElementById('sub-select1').style.borderColor = 'white'
3636
document.getElementById('sel-txt').style.color = 'white';
37-
//console.log(document.querySelector('.multiselect-wrapper').style)
38-
//document.querySelector('.multiselect-wrapper').classList.add('invert')
39-
//document.querySelector('.multiselect-wrapper').style.backgroundColor = 'black'
4037
try {
4138
document.querySelector('.multiselect-wrapper ul').style.backgroundColor = 'black';
4239
document.querySelector('.multiselect-wrapper ul').style.color = 'white';
4340
document.querySelector('.multiselect-list').style.color = 'white';
4441
document.querySelector('.multiselect-list').style.backgroundColor = 'black';
42+
document.querySelector('.multiselect-input-div input').style.backgroundColor = 'black'
43+
document.querySelector('.multiselect-input-div input').style.color = 'white'
4544
} catch (e) {
4645
console.log(e)
4746
}
4847
document.getElementById('top-bar').classList.add('invert');
4948
document.getElementById('err-path').style.color = 'white'
5049
document.getElementById('error').style.color = 'white'
5150
document.getElementById('success').style.color = 'white';
52-
document.getElementById("notification").style.backgroundColor = 'black'
51+
document.getElementById("notification").style.backgroundColor = 'black';
52+
5353
} else if(pref === 'light'){
5454
localStorage.setItem("colormode", "light")
5555
document.getElementById('filter').style.opacity = '5%'
@@ -74,6 +74,8 @@ function colormode(pref){
7474
document.querySelector('.multiselect-wrapper ul').style.color = 'black';
7575
document.querySelector('.multiselect-list').style.color = 'black';
7676
document.querySelector('.multiselect-list').style.backgroundColor = 'white';
77+
document.querySelector('.multiselect-input-div input').style.backgroundColor = '#fff'
78+
document.querySelector('.multiselect-input-div input').style.color = 'black';
7779
} catch (e) {
7880
console.log(e)
7981
}
@@ -83,12 +85,14 @@ function colormode(pref){
8385
document.getElementById('err-path').style.color = 'black'
8486
document.getElementById('error').style.color = 'black'
8587
document.getElementById('success').style.color = 'black';
86-
document.getElementById("notification").style.backgroundColor = 'white'
88+
document.getElementById("notification").style.backgroundColor = 'white';
89+
document.querySelector('.security-notification input').style.color = 'black'
90+
document.querySelector('.security-notification input').style.backgroundColor = 'white'
91+
document.querySelector('.security-notification input').style.borderColor = 'black';
8792
}
8893
}
8994

9095
function handler(value){
91-
console.log('entered')
9296
if(!value){
9397
document.getElementById('sec-notif').style.visibility = 'visible'
9498
document.getElementById('sec-notif').style.transform = 'scale(1)'
@@ -107,7 +111,6 @@ function handler(value){
107111
}
108112
})
109113
.then(response => {
110-
console.log(response)
111114
switch(response.status){
112115
case 220: {
113116
console.log('path was not valid')
@@ -177,6 +180,13 @@ function Multidirres(){
177180

178181
case 201: {
179182
success()
183+
setTimeout(() => {
184+
document.querySelector('body').classList.add('blur')
185+
setTimeout(() => {
186+
window.location.reload()
187+
}, 600)
188+
}, 500)
189+
180190
}break;
181191
}
182192
})
@@ -194,7 +204,13 @@ function recursivech(choice){
194204
}
195205
}).then((res) => {
196206
if(res.status === 200){
197-
success()
207+
success();
208+
setTimeout(() => {
209+
document.querySelector('body').classList.add('blur')
210+
setTimeout(() => {
211+
window.location.reload()
212+
}, 600)
213+
}, 500)
198214
} else{
199215
error()
200216
}

UI/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ <h3 style="text-align: center; margin-top: 60px;">
118118
<style>
119119

120120
.invert { filter: invert(100%); }
121+
.blur {filter: blur(10px);}
121122

122123
.notification{
123124
height: 70px;
@@ -132,6 +133,7 @@ <h3 style="text-align: center; margin-top: 60px;">
132133
bottom: 0;
133134
right: 0;
134135
display: block;
136+
border-color: transparent;
135137
transition: all .5s ease-out;
136138
}
137139

UI/main.cpp

Whitespace-only changes.

0 commit comments

Comments
 (0)