Skip to content

Commit 1c7a060

Browse files
committed
removed chat colour picker and coloured the welcome message
1 parent d581bf6 commit 1c7a060

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

bigbluebutton-client/src/org/bigbluebutton/modules/chat/services/ChatMessageService.as

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ package org.bigbluebutton.modules.chat.services
9393
msg.chatType = ChatConstants.PUBLIC_CHAT;
9494
msg.fromUserID = SPACE;
9595
msg.fromUsername = SPACE;
96-
msg.fromColor = "0";
96+
msg.fromColor = "86187";
9797
msg.fromLang = "en";
9898
msg.fromTime = new Date().getTime();
9999
msg.fromTimezoneOffset = new Date().getTimezoneOffset();

bigbluebutton-client/src/org/bigbluebutton/modules/chat/views/ChatBox.mxml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
5858
<mate:Listener type="{ShortcutEvent.FOCUS_CHAT_INPUT}" method="focusChatInput" />
5959
<mate:Listener type="{UserLeftEvent.LEFT}" method="handleUserLeftEvent"/>
6060
<mate:Listener type="{ShortcutEvent.FOCUS_CHAT_BOX}" method="focusChatBox" />
61-
<mate:Listener type="{ShortcutEvent.CHANGE_FONT_COLOUR}" method="focusColourPicker" />
61+
<!--mate:Listener type="{ShortcutEvent.CHANGE_FONT_COLOUR}" method="focusColourPicker" /-->
6262
<mate:Listener type="{ShortcutEvent.SEND_MESSAGE}" method="remoteSendMessage" />
6363

6464
<mate:Listener type="{ShortcutEvent.CHAT_DEBUG}" method="chatDebugInfo" />
@@ -181,9 +181,9 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
181181
focusManager.setFocus(chatMessagesList);
182182
}
183183
184-
private function focusColourPicker(e:ShortcutEvent):void{
184+
/*private function focusColourPicker(e:ShortcutEvent):void{
185185
focusManager.setFocus(cmpColorPicker);
186-
}
186+
}*/
187187
188188
private function remoteSendMessage(e:ShortcutEvent):void{
189189
sendMessages();
@@ -520,9 +520,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
520520
cm.chatType = ChatConstants.PUBLIC_CHAT;
521521
cm.fromUserID = UsersUtil.getMyUserID();
522522
cm.fromUsername = UsersUtil.getMyUsername();
523-
cm.fromColor = cmpColorPicker.selectedColor.toString();
523+
cm.fromColor = "0" //default the message colour to black now cmpColorPicker.selectedColor.toString();
524524
cm.fromLang = ChatUtil.getUserLang();
525-
526525
// Get the current UTC time and the timezone for this sender.
527526
// The receiver will have to convert this to local time.
528527
var now:Date = new Date();
@@ -541,7 +540,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
541540
cm.chatType = ChatConstants.PRIVATE_CHAT;
542541
cm.fromUserID = UsersUtil.getMyUserID();
543542
cm.fromUsername = UsersUtil.getMyUsername();
544-
cm.fromColor = cmpColorPicker.selectedColor.toString();
543+
cm.fromColor = "0" //default the message colour to black now cmpColorPicker.selectedColor.toString();
545544
cm.fromLang = ChatUtil.getUserLang();
546545
547546
// Get the current UTC time and the timezone for this sender.
@@ -596,7 +595,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
596595

597596
<mx:HBox id="chatCtrlBar" width="100%" height="50" styleName="chatControlBarStyle" verticalScrollPolicy="off"
598597
paddingLeft="5" paddingRight="5">
599-
<mx:TextArea id="txtMsgArea" width="100%" color="{cmpColorPicker.selectedColor}"
598+
<mx:TextArea id="txtMsgArea" width="100%"
600599
styleName="chatControlBarTextMsgStyle"
601600
toolTip="{ResourceUtil.getInstance().getString('bbb.accessibility.chat.chatwindow.input')}"
602601
tabIndex="{baseIndex+1}"/>
@@ -607,10 +606,10 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
607606
click="sendMessages()"
608607
tabIndex="{baseIndex+2}"
609608
accessibilityName="{ResourceUtil.getInstance().getString('bbb.chat.sendBtn.name')}"/>
610-
<mx:ColorPicker id="cmpColorPicker" showTextField="false"
609+
<!--mx:ColorPicker id="cmpColorPicker" showTextField="false"
611610
toolTip="{ResourceUtil.getInstance().getString('bbb.chat.cmpColorPicker.toolTip')}"
612611
selectedColor="0x000000" dataProvider="{colorPickerColours}" swatchPanelStyleName="chatColorPickerStyle"
613-
tabIndex="{baseIndex+3}"/>
612+
tabIndex="{baseIndex+3}"/-->
614613
</mx:VBox>
615614
</mx:HBox>
616615
</mx:VBox>

0 commit comments

Comments
 (0)