From d2e11ffd0af8809ee23d593482d01202c0ede114 Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Thu, 1 Oct 2026 12:13:41 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=96=BC=EF=B8=8F=20feat:=20Give=20Media=20?= =?UTF-8?q?Overlays=20Their=20Own=20Theme=20Roles=20(#16596)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Chat/Input/Files/DragDropOverlay.tsx | 16 +- .../Chat/Input/Files/ImagePreview.tsx | 10 +- .../Chat/Input/Files/ProgressCircle.tsx | 4 +- .../Chat/Input/Files/SourceIcon.tsx | 2 +- .../Chat/Messages/Content/DialogImage.tsx | 20 +- .../Chat/Messages/Content/Parts/BashCall.tsx | 2 +- .../Messages/Content/Parts/ExecuteCode.tsx | 4 +- .../Chat/Messages/MinimalMessages.tsx | 2 +- .../src/components/Insights/InsightsView.tsx | 8 +- .../Nav/SettingsTabs/Account/Avatar.tsx | 4 +- client/src/components/Share/MessagesView.tsx | 2 +- .../SidePanel/Agents/Tools/ToolCard.tsx | 2 +- .../SidePanel/Builder/AssistantAvatar.tsx | 27 +- .../components/SidePanel/Builder/Images.tsx | 85 +----- e2e/specs/mock/db.ts | 2 + .../scenarios/media-overlay-theme.spec.ts | 268 ++++++++++++++++++ eslint-suppressions.json | 21 +- packages/client/src/components/Button.tsx | 7 + packages/client/src/theme/README.md | 1 + packages/client/src/theme/allowlist.md | 29 +- packages/client/src/theme/defaults.css | 9 +- packages/client/src/theme/defaults.spec.ts | 2 +- .../client/src/theme/themes/clickhouse.ts | 4 + .../client/src/theme/themes/clickui.spec.ts | 23 +- packages/client/src/theme/themes/dark.ts | 2 + packages/client/src/theme/themes/default.ts | 6 +- .../client/src/theme/themes/highContrast.ts | 4 + packages/client/src/theme/tokens.css | 2 + packages/client/src/theme/types/index.ts | 9 + packages/data-provider/src/theme.ts | 2 + 30 files changed, 407 insertions(+), 172 deletions(-) create mode 100644 e2e/specs/mock/scenarios/media-overlay-theme.spec.ts diff --git a/client/src/components/Chat/Input/Files/DragDropOverlay.tsx b/client/src/components/Chat/Input/Files/DragDropOverlay.tsx index 43700206c3..6b568857c5 100644 --- a/client/src/components/Chat/Input/Files/DragDropOverlay.tsx +++ b/client/src/components/Chat/Input/Files/DragDropOverlay.tsx @@ -9,22 +9,18 @@ const DragDropOverlay = memo(({ isActive }: DragDropOverlayProps) => { const localize = useLocalize(); return ( <> - {/** Modal backdrop overlay */} + {/** Modal backdrop overlay: black at 40% in both modes, so the media role, not the page scrim */}
{/** 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/ImagePreview.tsx b/client/src/components/Chat/Input/Files/ImagePreview.tsx index 8a3c947330..5241048242 100644 --- a/client/src/components/Chat/Input/Files/ImagePreview.tsx +++ b/client/src/components/Chat/Input/Files/ImagePreview.tsx @@ -148,13 +148,13 @@ const ImagePreview = ({