From 3a7914e1bfdca1bd5a55457d2e9ab1b920c42c24 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 31 Jan 2025 14:31:03 +0530 Subject: [PATCH 1/7] Also for drawers --- web/packages/base/components/utils/theme.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/web/packages/base/components/utils/theme.ts b/web/packages/base/components/utils/theme.ts index 53749dffda..1d8825cfcd 100644 --- a/web/packages/base/components/utils/theme.ts +++ b/web/packages/base/components/utils/theme.ts @@ -532,7 +532,11 @@ const components: Components = { styleOverrides: { root: { ".MuiBackdrop-root": { - backgroundColor: "var(--mui-palette-backdrop-faint)", + // Use a translucent color for the backdrop. + backgroundColor: "var(--mui-palette-backdrop-muted)", + // Apply a blur to the existing contents on which we're + // shown, and show some of it through by reducing opacity. + backdropFilter: "blur(60px) opacity(80%)", }, }, }, @@ -548,11 +552,10 @@ const components: Components = { }, styleOverrides: { root: { + // Modify the backdrop of dialogs similar to what we do for + // drawers (but with slightly different values). ".MuiBackdrop-root": { - // Use a translucent color for the backdrop. backgroundColor: "var(--mui-palette-backdrop-muted)", - // Apply a blur to the existing contents on which we're - // shown, and show some of it through by reducing opacity. backdropFilter: "blur(30px) opacity(95%)", }, // Reset the MUI default paddings to 16px everywhere. From 5a8d45fa9871a39880cf3f957b6d0e252d7af851 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 31 Jan 2025 14:36:32 +0530 Subject: [PATCH 2/7] Subtler Revert "Also for drawers" This reverts commit 3a7914e1bfdca1bd5a55457d2e9ab1b920c42c24. --- .../src/components/Collections/CollectionShare.tsx | 5 ----- web/packages/base/components/utils/theme.ts | 9 +++------ 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsx index 461f7f8643..fee247b393 100644 --- a/web/apps/photos/src/components/Collections/CollectionShare.tsx +++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx @@ -105,11 +105,6 @@ export const CollectionShare: React.FC = ({ anchor="right" open={props.open} onClose={handleDrawerClose} - slotProps={{ - backdrop: { - sx: { "&&&": { backgroundColor: "transparent" } }, - }, - }} > Date: Fri, 31 Jan 2025 14:47:47 +0530 Subject: [PATCH 3/7] s --- web/apps/photos/src/components/Export.tsx | 2 +- web/apps/photos/src/components/ExportPendingList.tsx | 2 +- web/apps/photos/src/components/PhotoViewer/FileInfo.tsx | 5 +---- web/apps/photos/src/components/PhotoViewer/index.tsx | 2 +- web/packages/base/components/Titlebar.tsx | 2 +- web/packages/base/components/mui/SidebarDrawer.tsx | 4 ++-- web/packages/new/photos/components/gallery/PeopleHeader.tsx | 2 +- 7 files changed, 8 insertions(+), 11 deletions(-) diff --git a/web/apps/photos/src/components/Export.tsx b/web/apps/photos/src/components/Export.tsx index 60d7acce63..a10e855fad 100644 --- a/web/apps/photos/src/components/Export.tsx +++ b/web/apps/photos/src/components/Export.tsx @@ -235,7 +235,7 @@ function ExportDirectory({ exportFolder, changeExportDirectory, exportStage }) { )} ) : ( - )} diff --git a/web/apps/photos/src/components/ExportPendingList.tsx b/web/apps/photos/src/components/ExportPendingList.tsx index 266bb0e221..c9e87afca8 100644 --- a/web/apps/photos/src/components/ExportPendingList.tsx +++ b/web/apps/photos/src/components/ExportPendingList.tsx @@ -71,7 +71,7 @@ const ExportPendingList = (props: Iprops) => { /> {t("close")} diff --git a/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx b/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx index 9a27993fb3..838cf5b374 100644 --- a/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx +++ b/web/apps/photos/src/components/PhotoViewer/FileInfo.tsx @@ -964,10 +964,7 @@ const RawExif: React.FC = ({ caption={fileName} onRootClose={handleRootClose} actionButton={ - + } /> diff --git a/web/apps/photos/src/components/PhotoViewer/index.tsx b/web/apps/photos/src/components/PhotoViewer/index.tsx index 16c931a1d1..3fa8f01d83 100644 --- a/web/apps/photos/src/components/PhotoViewer/index.tsx +++ b/web/apps/photos/src/components/PhotoViewer/index.tsx @@ -1037,7 +1037,7 @@ const ConversionFailedNotification: React.FC< >