Set dark style icon to screensharing button when local video is disabled.

Signed-off-by: Ivan Sein <ivan@nextcloud.com>
This commit is contained in:
Ivan Sein 2018-03-29 10:25:31 +02:00
Родитель fc4c4ae77b
Коммит 7cd7abd947
2 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -378,7 +378,8 @@ video {
#app-content:not(.incall):not(.screensharing) .icon-white.icon-shadow {
/* Still use white icons outside of calls when local video shows */
&#hideVideo.video-disabled,
&#mute.video-disabled {
&#mute.video-disabled,
&#screensharing-button.video-disabled {
filter: none;
}

Просмотреть файл

@ -707,6 +707,7 @@
var $hideVideoButton = $('#hideVideo');
var $audioMuteButton = $('#mute');
var $screensharingButton = $('#screensharing-button');
var avatarContainer = $hideVideoButton.closest('.videoView').find('.avatar-container');
var localVideo = $hideVideoButton.closest('.videoView').find('#localVideo');
@ -715,6 +716,7 @@
.removeClass('video-disabled icon-video-off')
.addClass('icon-video');
$audioMuteButton.removeClass('video-disabled');
$screensharingButton.removeClass('video-disabled');
avatarContainer.hide();
localVideo.show();
@ -728,6 +730,7 @@
var $hideVideoButton = $('#hideVideo');
var $audioMuteButton = $('#mute');
var $screensharingButton = $('#screensharing-button');
var avatarContainer = $hideVideoButton.closest('.videoView').find('.avatar-container');
var localVideo = $hideVideoButton.closest('.videoView').find('#localVideo');
@ -736,6 +739,7 @@
.addClass('video-disabled icon-video-off')
.removeClass('icon-video');
$audioMuteButton.addClass('video-disabled');
$screensharingButton.addClass('video-disabled');
}
var avatar = avatarContainer.find('.avatar');