[mirotalksfu] - add chat/wb transparent bg

هذا الالتزام موجود في:
Miroslav Pejic
2022-08-24 09:23:48 +02:00
الأصل d611ac445b
التزام 4c27bdfa6b
4 ملفات معدلة مع 41 إضافات و1 حذوفات

عرض الملف

@@ -30,6 +30,9 @@ const html = {
sendMsg: 'fas fa-paper-plane',
sendVideo: 'fab fa-youtube',
kickOut: 'fas fa-times',
ghost: 'fas fa-ghost',
undo: 'fas fa-undo',
bg: 'fas fa-circle-half-stroke',
};
const image = {
@@ -149,6 +152,7 @@ class RoomClient {
this.isVideoOnFullScreen = false;
this.isChatOpen = false;
this.isChatEmojiOpen = false;
this.isChatBgTransparent = false;
this.camVideo = false;
this.camera = 'user';
@@ -2072,6 +2076,15 @@ class RoomClient {
});
}
chatToggleBg() {
this.isChatBgTransparent = !this.isChatBgTransparent;
if (this.isChatBgTransparent) {
document.documentElement.style.setProperty('--msger-bg', 'rgba(0, 0, 0, 0.100)');
} else {
setTheme(currentTheme);
}
}
chatClean() {
Swal.fire({
background: swalBackground,