[mirotalk] - UI

This commit is contained in:
Miroslav Pejic
2022-06-19 20:15:33 +02:00
parent 8e3b877f28
commit 627031bfd9
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -119,7 +119,7 @@ body {
height: 100%;
margin: auto;
overflow: hidden;
background: var(--body-bg);
background: url('../images/bg.svg');
}
/*--------------------------------------------------------------
@@ -142,7 +142,7 @@ body {
color: #fff;
padding: 30px;
border-radius: 10px;
background: var(--body-bg);
background: rgba(0, 0, 0, 0.7);
}
#loadingDiv h1 {
font-size: 60px;
+3 -2
View File
@@ -634,8 +634,6 @@ function countPeerConnections() {
* On body load Get started
*/
function initClientPeer() {
setTheme(mirotalkTheme);
if (!isWebRTCSupported) {
userLog('error', 'This browser seems not supported WebRTC!');
return;
@@ -810,6 +808,7 @@ function whoAreYouJoin() {
setPeerAvatarImgName('myVideoAvatarImage', myPeerName);
setPeerChatAvatarImgName('right', myPeerName);
joinToChannel();
setTheme(mirotalkTheme);
}
/**
@@ -1182,6 +1181,7 @@ function setTheme(theme) {
document.documentElement.style.setProperty('--left-msg-bg', '#222328');
document.documentElement.style.setProperty('--private-msg-bg', '#f77070');
document.documentElement.style.setProperty('--right-msg-bg', '#0a0b0c');
document.body.style.background = 'radial-gradient(#393939, #000000)';
break;
case 'grey':
// grey theme
@@ -1194,6 +1194,7 @@ function setTheme(theme) {
document.documentElement.style.setProperty('--left-msg-bg', '#222328');
document.documentElement.style.setProperty('--private-msg-bg', '#f77070');
document.documentElement.style.setProperty('--right-msg-bg', '#0a0b0c');
document.body.style.background = 'radial-gradient(#666, #333)';
break;
// ...
default: