fix(background-alpha) Fix setting background opacity
This commit is contained in:
parent
ab91f79448
commit
6e80db0114
|
@ -108,13 +108,13 @@ UI.start = function() {
|
||||||
$('body').addClass('mobile-browser');
|
$('body').addClass('mobile-browser');
|
||||||
} else {
|
} else {
|
||||||
$('body').addClass('desktop-browser');
|
$('body').addClass('desktop-browser');
|
||||||
|
}
|
||||||
|
|
||||||
if (config.backgroundAlpha !== undefined) {
|
if (config.backgroundAlpha !== undefined) {
|
||||||
const backgroundColor = $('body').css('background-color');
|
const backgroundColor = $('body').css('background-color');
|
||||||
const alphaColor = setColorAlpha(backgroundColor, config.backgroundAlpha);
|
const alphaColor = setColorAlpha(backgroundColor, config.backgroundAlpha);
|
||||||
|
|
||||||
$('body').css('background-color', alphaColor);
|
$('body').css('background-color', alphaColor);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.iAmRecorder) {
|
if (config.iAmRecorder) {
|
||||||
|
|
|
@ -229,13 +229,13 @@ class Conference extends AbstractConference<Props, *> {
|
||||||
id = 'layout_wrapper'
|
id = 'layout_wrapper'
|
||||||
onMouseEnter = { this._onMouseEnter }
|
onMouseEnter = { this._onMouseEnter }
|
||||||
onMouseLeave = { this._onMouseLeave }
|
onMouseLeave = { this._onMouseLeave }
|
||||||
onMouseMove = { this._onMouseMove } >
|
onMouseMove = { this._onMouseMove }
|
||||||
|
ref = { this._setBackground }>
|
||||||
<Chat />
|
<Chat />
|
||||||
<div
|
<div
|
||||||
className = { clsx(_layoutClassName, _showStageFilmstrip && 'stage-filmstrip') }
|
className = { clsx(_layoutClassName, _showStageFilmstrip && 'stage-filmstrip') }
|
||||||
id = 'videoconference_page'
|
id = 'videoconference_page'
|
||||||
onMouseMove = { isMobileBrowser() ? undefined : this._onShowToolbar }
|
onMouseMove = { isMobileBrowser() ? undefined : this._onShowToolbar }>
|
||||||
ref = { this._setBackground }>
|
|
||||||
<ConferenceInfo />
|
<ConferenceInfo />
|
||||||
<Notice />
|
<Notice />
|
||||||
<div
|
<div
|
||||||
|
|
Loading…
Reference in New Issue