mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Apply conversations color
This commit is contained in:
		@@ -302,6 +302,10 @@ const ConvChatWindow = {
 | 
			
		||||
			//Change the name of the conversation
 | 
			
		||||
			this.changeName(await getConvName(conv), conversationWindow);
 | 
			
		||||
 | 
			
		||||
			// Apply the color of the conversation (if any)
 | 
			
		||||
			if (conv.color)
 | 
			
		||||
				conversationWindow.rootElem.setAttribute("style", "--primary-blue: #" +conv.color)
 | 
			
		||||
 | 
			
		||||
			// Update conversation members informations
 | 
			
		||||
			this.updateMembersList(conversationInfos);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user