From b0085f274179d889033bc7925ceabfa3b5d33094 Mon Sep 17 00:00:00 2001 From: Ankit Matth Date: Sat, 7 Oct 2023 20:42:32 +0530 Subject: [PATCH] Color of all buttons and elements changed from blue to #7D54D1 --- docs/pages/Developing/API-docs.md | 2 +- extensions/chrome/popup.html | 4 ++-- extensions/chrome/popup.js | 2 +- frontend/src/conversation/ConversationBubble.tsx | 6 +++--- frontend/src/upload/Upload.tsx | 10 +++++----- frontend/tailwind.config.cjs | 1 + 6 files changed, 13 insertions(+), 12 deletions(-) diff --git a/docs/pages/Developing/API-docs.md b/docs/pages/Developing/API-docs.md index 25838742..eabd29c0 100644 --- a/docs/pages/Developing/API-docs.md +++ b/docs/pages/Developing/API-docs.md @@ -73,7 +73,7 @@ HTML example: - diff --git a/extensions/chrome/popup.html b/extensions/chrome/popup.html index 432d31ae..98921086 100644 --- a/extensions/chrome/popup.html +++ b/extensions/chrome/popup.html @@ -20,7 +20,7 @@

Hello, ask me anything about this library. Im here to help

-
+

How to create API key for Api gateway?

@@ -46,7 +46,7 @@
- +
diff --git a/extensions/chrome/popup.js b/extensions/chrome/popup.js index 20f7bce3..70b7415d 100644 --- a/extensions/chrome/popup.js +++ b/extensions/chrome/popup.js @@ -3,7 +3,7 @@ document.getElementById("message-form").addEventListener("submit", function(even var message = document.getElementById("message-input").value; chrome.runtime.sendMessage({msg: "sendMessage", message: message}, function(response) { console.log(response.response); - msg_html = '

' + msg_html = '

' msg_html += message msg_html += '

' document.getElementById("messages").innerHTML += msg_html; diff --git a/frontend/src/conversation/ConversationBubble.tsx b/frontend/src/conversation/ConversationBubble.tsx index 2793a9bf..37349660 100644 --- a/frontend/src/conversation/ConversationBubble.tsx +++ b/frontend/src/conversation/ConversationBubble.tsx @@ -42,7 +42,7 @@ const ConversationBubble = forwardRef< bubble = (
-
+
{message} @@ -148,7 +148,7 @@ const ConversationBubble = forwardRef< handleFeedback?.('LIKE')} @@ -173,7 +173,7 @@ const ConversationBubble = forwardRef<
{sources && openSource !== null && sources[openSource] && ( -
+

Source: {sources[openSource].title}

diff --git a/frontend/src/upload/Upload.tsx b/frontend/src/upload/Upload.tsx index 0edc971b..755a9ad4 100644 --- a/frontend/src/upload/Upload.tsx +++ b/frontend/src/upload/Upload.tsx @@ -41,9 +41,9 @@ export default function Upload({

{progress?.percentage || 0}%

-
+
@@ -55,7 +55,7 @@ export default function Upload({ setProgress(undefined); setModalState('INACTIVE'); }} - className={`rounded-3xl bg-blue-3000 px-4 py-2 text-sm font-medium text-white ${ + className={`rounded-3xl bg-purple-30 px-4 py-2 text-sm font-medium text-white ${ isCancellable ? '' : 'hidden' }`} > @@ -189,7 +189,7 @@ export default function Upload({ Name
- + Choose Files @@ -206,7 +206,7 @@ export default function Upload({
diff --git a/frontend/tailwind.config.cjs b/frontend/tailwind.config.cjs index 64fb76f2..8e395a07 100644 --- a/frontend/tailwind.config.cjs +++ b/frontend/tailwind.config.cjs @@ -24,6 +24,7 @@ module.exports = { 'blue-1000': '#7D54D1', 'blue-2000': '#002B49', 'blue-3000': '#4B02E2', + 'purple-30': '#7D54D1', 'blue-4000': 'rgba(0, 125, 255, 0.36)', 'blue-5000': 'rgba(0, 125, 255)', },