From 4ae86fd48c44e7cf7b95a40eff57d341703bed6d Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Tue, 29 Sep 2026 07:42:27 +0200 Subject: [PATCH 1/5] fix: Paint Chat Surfaces From Theme Roles The code window header and skill output panel stop repainting their surface-secondary container with a per-mode fill that matched it in every bundled theme, the drag-and-drop backdrop becomes the theme scrim, the OpenAI file-source chip takes the primary surface, and the banner drops a stopless dark gradient. ActionIcon, RetrievalIcon, WrenchIcon and the message ProgressCircle had no importers and carried fixed Lottie colours, so they are removed. The media, artwork and exported-document colours that stay fixed are recorded in the theme allowlist. --- client/src/components/Banners/Banner.tsx | 6 +- .../Chat/Input/Files/DragDropOverlay.tsx | 14 +- .../Chat/Input/Files/SourceIcon.tsx | 2 +- .../Chat/Messages/Content/ActionIcon.tsx | 172 ------------------ .../Content/Parts/CodeWindowHeader.tsx | 2 +- .../Chat/Messages/Content/Parts/SkillCall.tsx | 10 +- .../Chat/Messages/Content/ProgressCircle.tsx | 38 ---- .../Chat/Messages/Content/RetrievalIcon.tsx | 80 -------- .../Chat/Messages/Content/WrenchIcon.tsx | 49 ----- eslint-suppressions.json | 31 +--- packages/client/src/theme/allowlist.md | 12 ++ 11 files changed, 28 insertions(+), 388 deletions(-) delete mode 100644 client/src/components/Chat/Messages/Content/ActionIcon.tsx delete mode 100644 client/src/components/Chat/Messages/Content/ProgressCircle.tsx delete mode 100644 client/src/components/Chat/Messages/Content/RetrievalIcon.tsx delete mode 100644 client/src/components/Chat/Messages/Content/WrenchIcon.tsx diff --git a/client/src/components/Banners/Banner.tsx b/client/src/components/Banners/Banner.tsx index 78d840e81be..7fa078d513f 100644 --- a/client/src/components/Banners/Banner.tsx +++ b/client/src/components/Banners/Banner.tsx @@ -58,11 +58,11 @@ export const Banner = ({ onHeightChange }: { onHeightChange?: (height: number) = return (
-
diff --git a/client/src/components/Chat/Input/Files/DragDropOverlay.tsx b/client/src/components/Chat/Input/Files/DragDropOverlay.tsx index 43700206c33..50d55faccd4 100644 --- a/client/src/components/Chat/Input/Files/DragDropOverlay.tsx +++ b/client/src/components/Chat/Input/Files/DragDropOverlay.tsx @@ -11,20 +11,16 @@ const DragDropOverlay = memo(({ isActive }: DragDropOverlayProps) => { <> {/** Modal backdrop overlay */}
{/** Main content overlay */}
{ }} > {/** Content area with subtle background */} -
+
{

{localize('com_ui_upload_files')}

-

{localize('com_ui_drag_drop')}

+

{localize('com_ui_drag_drop')}

diff --git a/client/src/components/Chat/Input/Files/SourceIcon.tsx b/client/src/components/Chat/Input/Files/SourceIcon.tsx index 63a8ef790b2..6ff1c062436 100644 --- a/client/src/components/Chat/Input/Files/SourceIcon.tsx +++ b/client/src/components/Chat/Input/Files/SourceIcon.tsx @@ -9,7 +9,7 @@ const sourceToEndpoint = { }; const sourceToClassname = { - [FileSources.openai]: 'bg-white/75 dark:bg-black/65', + [FileSources.openai]: 'bg-surface-primary/75', [FileSources.azure]: 'azure-bg-color', [FileSources.azure_blob]: 'azure-bg-color', [FileSources.execute_code]: 'bg-black text-white opacity-85', diff --git a/client/src/components/Chat/Messages/Content/ActionIcon.tsx b/client/src/components/Chat/Messages/Content/ActionIcon.tsx deleted file mode 100644 index 2c6ee4465f8..00000000000 --- a/client/src/components/Chat/Messages/Content/ActionIcon.tsx +++ /dev/null @@ -1,172 +0,0 @@ -export default function ActionIcon() { - return ( - - - - - - - - - - - - - - - - - - - - - - - - - {/* eslint-disable-next-line react/no-unknown-property */} - - - - - - - - - - - - - - - - - - - - - - - {/* eslint-disable-next-line react/no-unknown-property */} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ); -} diff --git a/client/src/components/Chat/Messages/Content/Parts/CodeWindowHeader.tsx b/client/src/components/Chat/Messages/Content/Parts/CodeWindowHeader.tsx index 93ee1851f26..d3ab56c4cf4 100644 --- a/client/src/components/Chat/Messages/Content/Parts/CodeWindowHeader.tsx +++ b/client/src/components/Chat/Messages/Content/Parts/CodeWindowHeader.tsx @@ -25,7 +25,7 @@ export default function CodeWindowHeader({ language, code, diffStats }: CodeWind }, [code]); return ( -
+
{language} diff --git a/client/src/components/Chat/Messages/Content/Parts/SkillCall.tsx b/client/src/components/Chat/Messages/Content/Parts/SkillCall.tsx index 8a58ad08dc3..0e95897bf97 100644 --- a/client/src/components/Chat/Messages/Content/Parts/SkillCall.tsx +++ b/client/src/components/Chat/Messages/Content/Parts/SkillCall.tsx @@ -63,7 +63,7 @@ export default function SkillCall({ icon={