Skip to content

Commit 8556ef5

Browse files
committed
add ability to specify title bar color
1 parent 3c243be commit 8556ef5

15 files changed

Lines changed: 62 additions & 45 deletions

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ You can also customize chatbot with different configuration
150150
showAgentMessages: true,
151151
title: 'Flowise Bot',
152152
titleAvatarSrc: 'https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/svg/google-messages.svg',
153+
titleBackgroundColor: '#3B81F6',
154+
titleTextColor: '#ffffff',
153155
welcomeMessage: 'Hello! This is custom welcome message',
154156
errorMessage: 'This is a custom error message',
155157
backgroundColor: '#ffffff',
@@ -275,7 +277,7 @@ yarn start
275277

276278
```html
277279
<!-- public/index.html -->
278-
chatflowid: 'your-identifier-here' // Must match an identifier from your .env
280+
chatflowid: 'your-identifier-here' // Must match an identifier from your .env
279281
```
280282

281283
**Important Notes:**

dist/components/Bot.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ export type BotProps = {
8787
showAgentMessages?: boolean;
8888
title?: string;
8989
titleAvatarSrc?: string;
90+
titleTextColor?: string;
91+
titleBackgroundColor?: string;
9092
fontSize?: number;
9193
isFullPage?: boolean;
9294
footer?: FooterTheme;

dist/components/Bot.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/features/bubble/components/Bubble.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/features/bubble/types.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ export type ChatWindowTheme = {
4848
showAgentMessages?: boolean;
4949
title?: string;
5050
titleAvatarSrc?: string;
51+
titleTextColor?: string;
52+
titleBackgroundColor?: string;
5153
welcomeMessage?: string;
5254
errorMessage?: string;
5355
backgroundColor?: string;

dist/features/bubble/types.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/features/full/components/Full.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/features/popup/components/DisclaimerPopup.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/web.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)