Skip to content

Commit

Permalink
[mirotalk] - UI
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Jun 19, 2022
1 parent 8e3b877 commit 627031b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions public/css/client.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ body {
height: 100%;
margin: auto;
overflow: hidden;
background: var(--body-bg);
background: url('../images/bg.svg');
}

/*--------------------------------------------------------------
Expand All @@ -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;
Expand Down
5 changes: 3 additions & 2 deletions public/js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -810,6 +808,7 @@ function whoAreYouJoin() {
setPeerAvatarImgName('myVideoAvatarImage', myPeerName);
setPeerChatAvatarImgName('right', myPeerName);
joinToChannel();
setTheme(mirotalkTheme);
}

/**
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 627031b

Please sign in to comment.