From b68fc0aa857a24a7e02441300c4d41f2792b3055 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Sat, 14 Feb 2026 10:13:40 +0000 Subject: [PATCH] Update chat UI --- ui/suite/chat/chat.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/suite/chat/chat.html b/ui/suite/chat/chat.html index 60834b0..7132b11 100644 --- a/ui/suite/chat/chat.html +++ b/ui/suite/chat/chat.html @@ -962,8 +962,8 @@ function applyThemeData(themeData) { console.log("Applying theme data:", themeData); - var color1 = themeData.color1 || themeData.data?.color1 || "#3b82f6"; - var color2 = themeData.color2 || themeData.data?.color2 || "#f5deb3"; + var color1 = themeData.color1 || themeData.data?.color1 || "black"; + var color2 = themeData.color2 || themeData.data?.color2 || "white"; var logo = themeData.logo_url || themeData.data?.logo_url || ""; var title = themeData.title || themeData.data?.title || window.__INITIAL_BOT_NAME__ || "Chat"; @@ -995,10 +995,10 @@ .then(function(config) { if (!config) return; - // Apply colors from config - var color1 = config["theme-color1"] || config["Theme Color"] || "#3b82f6"; - var color2 = config["theme-color2"] || "#f5deb3"; - var title = config["theme-title"] || botName; + // Apply colors from config (API returns snake_case) + var color1 = config.theme_color1 || config["theme-color1"] || config["Theme Color"] || "#3b82f6"; + var color2 = config.theme_color2 || config["theme-color2"] || "#f5deb3"; + var title = config.theme_title || config["theme-title"] || botName; // Set CSS variables for colors on document element document.documentElement.style.setProperty("--chat-color1", color1);