π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use dark backdrops in Space dialogs
Anand Baburajanf8d10c1b37a6
diff --git a/web/apps/space/src/components/ConfirmationActionSheet.tsx b/web/apps/space/src/components/ConfirmationActionSheet.tsxindex 89a0c248bf..145af6340c 100644--- a/web/apps/space/src/components/ConfirmationActionSheet.tsx+++ b/web/apps/space/src/components/ConfirmationActionSheet.tsx@@ -66,20 +66,11 @@ export const ConfirmationActionSheet: React.FC<isDark? {zIndex: 1500,- "& .MuiBackdrop-root": {- backgroundColor: "rgba(0, 0, 0, 0.86) !important",- },+ "--space-dialog-backdrop": "rgba(0 0 0 / 0.86)",}: undefined}slotProps={{- backdrop: {- sx: {- backgroundColor: isDark- ? "rgba(0, 0, 0, 0.86)"- : "rgba(0, 0, 0, 0.48)",- },- },paper: {sx: {bgcolor: isDark ? "#1E1E1E" : "#FAFAFA",diff --git a/web/apps/space/src/components/SpacePWAInstallPrompt.tsx b/web/apps/space/src/components/SpacePWAInstallPrompt.tsxindex 42f2a43e0b..7ed5dbbfa6 100644--- a/web/apps/space/src/components/SpacePWAInstallPrompt.tsx+++ b/web/apps/space/src/components/SpacePWAInstallPrompt.tsx@@ -212,13 +212,13 @@ const SpacePWAInstallInstructions: React.FC<onClose={onClose}maxWidth={false}aria-labelledby={titleID}+ sx={{ "--space-dialog-backdrop": "rgba(0 0 0 / 0.56)" }}slots={isBottomSheet? { transition: SpaceBottomSheetTransition }: undefined}slotProps={{- backdrop: { sx: { backgroundColor: "rgba(0, 0, 0, 0.56)" } },paper: {sx: {bgcolor: "#FFFFFF",diff --git a/web/apps/space/src/components/SpaceShareLinkDialog.tsx b/web/apps/space/src/components/SpaceShareLinkDialog.tsxindex 106756198e..b3bc2eb6f2 100644--- a/web/apps/space/src/components/SpaceShareLinkDialog.tsx+++ b/web/apps/space/src/components/SpaceShareLinkDialog.tsx@@ -132,9 +132,6 @@ export const SpaceShareLinkDialogHost: React.FC = () => {: undefined}slotProps={{- backdrop: {- sx: { backgroundColor: "rgba(0, 0, 0, 0.48)" },- },paper: {sx: {bgcolor: "#FAFAFA",diff --git a/web/apps/space/src/pages/_app.tsx b/web/apps/space/src/pages/_app.tsxindex 366fdc926d..98f617f4c8 100644--- a/web/apps/space/src/pages/_app.tsx+++ b/web/apps/space/src/pages/_app.tsx@@ -1,7 +1,7 @@import "@fontsource-variable/inter";import "@fontsource/nunito/800.css";import { CssBaseline } from "@mui/material";-import { ThemeProvider } from "@mui/material/styles";+import { createTheme, ThemeProvider } from "@mui/material/styles";import { SpaceRouteTransitionBoundary } from "components/SpaceRouteTransitionBoundary";import { SpaceShareLinkDialogHost } from "components/SpaceShareLinkDialog";import "configureZod";@@ -15,12 +15,27 @@ import "react-easy-crop/react-easy-crop.css";import { SpaceAppStateProvider } from "state/SpaceAppStateProvider";import "styles/globals.css";+const spaceTheme = createTheme(shareTheme, {+ components: {+ MuiDialog: {+ styleOverrides: {+ root: {+ ".MuiBackdrop-root": {+ backgroundColor:+ "var(--space-dialog-backdrop, rgba(0 0 0 / 0.48))",+ },+ },+ },+ },+ },+});+const App: React.FC<AppProps> = ({ Component, pageProps }) => {useSetupLogs({ disableDiskLogs: true });return (<ThemeProvider- theme={shareTheme}+ theme={spaceTheme}defaultMode="light"storageManager={null}>