Apply conversations color

This commit is contained in:
2021-03-07 14:36:17 +01:00
parent 9dbbf0eb5f
commit d425734810
2 changed files with 9 additions and 0 deletions

View File

@ -59,6 +59,8 @@ const ConversationPageConvPart = {
class: "box box-primary box-conversation direct-chat-primary big-box-conversation"
});
this._conv_info.window.root = box;
//Box header
var boxHeader = createElem2({
appendTo: box,
@ -129,6 +131,9 @@ const ConversationPageConvPart = {
//Get and apply the name of the conversation
this._conv_info.window.title.innerHTML = await getConvName(convInfo);
if (convInfo.color)
this._conv_info.window.root.setAttribute("style", "--primary-blue: #" +convInfo.color)
//Add send message form
this.addSendMessageForm();