@@ -36,6 +36,7 @@ const ChatContainer = styled.div<{
3636 $inputStyle ?: any ;
3737 $sendButtonStyle ?: any ;
3838 $newThreadButtonStyle ?: any ;
39+ $threadItemStyle ?: any ;
3940 $animationStyle ?: any ;
4041} > `
4142 display: flex;
@@ -106,7 +107,7 @@ const ChatContainer = styled.div<{
106107 }
107108
108109 /* New Thread Button Styles */
109- .aui-thread-list-root button[type="button"]:first-child {
110+ .aui-thread-list-root > button {
110111 background-color: ${ ( props ) => props . $newThreadButtonStyle ?. newThreadBackground || "#3b82f6" } !important;
111112 color: ${ ( props ) => props . $newThreadButtonStyle ?. newThreadText || "#ffffff" } !important;
112113 border-color: ${ ( props ) => props . $newThreadButtonStyle ?. newThreadBackground || "#3b82f6" } !important;
@@ -116,10 +117,14 @@ const ChatContainer = styled.div<{
116117 .aui-thread-list-item {
117118 cursor: pointer;
118119 transition: background-color 0.2s ease;
120+ background-color: ${ ( props ) => props . $threadItemStyle ?. threadItemBackground || "transparent" } ;
121+ color: ${ ( props ) => props . $threadItemStyle ?. threadItemText || "inherit" } ;
122+ border: 1px solid ${ ( props ) => props . $threadItemStyle ?. threadItemBorder || "transparent" } ;
119123
120124 &[data-active="true"] {
121- background-color: #dbeafe;
122- border: 1px solid #bfdbfe;
125+ background-color: ${ ( props ) => props . $threadItemStyle ?. activeThreadBackground || "#dbeafe" } ;
126+ color: ${ ( props ) => props . $threadItemStyle ?. activeThreadText || "inherit" } ;
127+ border: 1px solid ${ ( props ) => props . $threadItemStyle ?. activeThreadBorder || "#bfdbfe" } ;
123128 }
124129 }
125130` ;
@@ -145,6 +150,7 @@ interface ChatCoreMainProps {
145150 inputStyle ?: any ;
146151 sendButtonStyle ?: any ;
147152 newThreadButtonStyle ?: any ;
153+ threadItemStyle ?: any ;
148154 animationStyle ?: any ;
149155}
150156
@@ -164,6 +170,7 @@ export function ChatCoreMain({
164170 inputStyle,
165171 sendButtonStyle,
166172 newThreadButtonStyle,
173+ threadItemStyle,
167174 animationStyle
168175} : ChatCoreMainProps ) {
169176 const { state, actions } = useChatContext ( ) ;
@@ -401,6 +408,7 @@ export function ChatCoreMain({
401408 $inputStyle = { inputStyle }
402409 $sendButtonStyle = { sendButtonStyle }
403410 $newThreadButtonStyle = { newThreadButtonStyle }
411+ $threadItemStyle = { threadItemStyle }
404412 $animationStyle = { animationStyle }
405413 >
406414 < ThreadList />
0 commit comments