From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001
From: wwf <yearningwang@iqtogether.com>
Date: 星期三, 04 六月 2025 15:17:49 +0800
Subject: [PATCH] 初始化

---
 app/components/base/chat/embedded-chatbot/theme/theme-context.ts |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/app/components/base/chat/embedded-chatbot/theme/theme-context.ts b/app/components/base/chat/embedded-chatbot/theme/theme-context.ts
index d4d617d..49994d9 100644
--- a/app/components/base/chat/embedded-chatbot/theme/theme-context.ts
+++ b/app/components/base/chat/embedded-chatbot/theme/theme-context.ts
@@ -9,7 +9,7 @@
   public backgroundHeaderColorStyle = 'backgroundImage: linear-gradient(to right, #2563eb, #0ea5e9)'
   public headerBorderBottomStyle = ''
   public colorFontOnHeaderStyle = 'color: white'
-  public colorPathOnHeader = 'text-text-primary-on-surface'
+  public colorPathOnHeader = 'white'
   public backgroundButtonDefaultColorStyle = 'backgroundColor: #1C64F2'
   public roundedBackgroundColorStyle = 'backgroundColor: rgb(245 248 255)'
   public chatBubbleColorStyle = 'backgroundColor: rgb(225 239 254)'
@@ -48,13 +48,10 @@
   private buildChecker = false
 
   public get theme() {
-    if (this._theme === undefined) {
-      this._theme = new Theme()
+    if (this._theme === undefined)
+      throw new Error('The theme should be built first and then accessed')
+    else
       return this._theme
-    }
-    else {
-      return this._theme
-    }
   }
 
   public buildTheme(chatColorTheme: string | null = null, chatColorThemeInverted = false) {

--
Gitblit v1.8.0