Merge pull request #3750 from riadvice/black-video-chat-layout

Black video chat layout update
This commit is contained in:
Fred Dixon 2017-03-24 10:04:39 -04:00 committed by GitHub
commit f1ea606432
2 changed files with 33 additions and 1 deletions

View File

@ -15,6 +15,14 @@ ApplicationControlBar {
dropShadowColor: #000000;
}
.defaultControlBarStyle {
color : #0B333C;
}
.darkControlBarStyle {
color : #ffffff;
}
Panel {
borderColor: #dfdfdf;
borderAlpha: 1;
@ -756,12 +764,14 @@ MDIWindow { /*None of the following properties are overridden by the MDIWindow c
}
.videoDockStyleFocusChatLayout {
borderStyle : none;
borderColor: #42444c;
backgroundColor: #42444c;
}
.videoDockStyleNoFocusChatLayout {
borderColor: #32343b;
borderStyle : none;
borderColor: #42444c;
backgroundColor: #42444c;
}
@ -875,6 +885,14 @@ MDIWindow { /*None of the following properties are overridden by the MDIWindow c
borderThicknessRight: 3;
}
.defaultShellStyle {
backgroundColor: #fefeff;
}
.darkShellStyle {
backgroundColor: #42444c;
}
.mdiWindowTitle {
color: #3f3f41;
fontFamily: Arial;

View File

@ -69,6 +69,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
<mate:Listener type="{BreakoutRoomEvent.OPEN_BREAKOUT_ROOMS_PANEL}" method="openBreakoutRoomsWindow" />
<mate:Listener type="{InvalidAuthTokenEvent.INVALID_AUTH_TOKEN}" method="handleInvalidAuthToken" />
<mate:Listener type="{SwitchedLayoutEvent.SWITCHED_LAYOUT_EVENT}" method="onLayoutChanged" />
<mx:Script>
<![CDATA[
import com.asfusion.mate.events.Dispatcher;
@ -101,6 +103,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
import org.bigbluebutton.core.PopUpUtil;
import org.bigbluebutton.core.UsersUtil;
import org.bigbluebutton.core.events.LockControlEvent;
import org.bigbluebutton.core.events.SwitchedLayoutEvent;
import org.bigbluebutton.core.managers.UserManager;
import org.bigbluebutton.core.vo.LockSettingsVO;
import org.bigbluebutton.main.events.AppVersionEvent;
@ -680,6 +683,17 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
ExternalInterface.call("chatLinkClicked", e.text);
}
}
private function onLayoutChanged(e:SwitchedLayoutEvent):void {
if (e.layoutID != "bbb.layout.name.videochat") {
this.styleName = "defaultShellStyle";
controlBar.styleName = "defaultControlBarStyle";
} else {
this.styleName = "darkShellStyle";
controlBar.styleName = "darkControlBarStyle";
}
}
]]>
</mx:Script>