π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
To misc
Manav Rathi4c75253e0a2b
diff --git a/web/apps/photos/src/components/PhotoViewer/index.tsx b/web/apps/photos/src/components/PhotoViewer/index.tsxindex 1ba93165e4..97f2ce91a9 100644--- a/web/apps/photos/src/components/PhotoViewer/index.tsx+++ b/web/apps/photos/src/components/PhotoViewer/index.tsx@@ -989,7 +989,7 @@ const CaptionContainer = styled("div")(({ theme }) => ({maxWidth: "375px",fontSize: "14px",lineHeight: "17px",- backgroundColor: theme.colors.backdrop.faint,+ backgroundColor: theme.palette.misc.backdropFaint,backdropFilter: "blur(96px)",}));diff --git a/web/packages/base/components/utils/mui-theme.d.ts b/web/packages/base/components/utils/mui-theme.d.tsindex 671a3c2140..361622816e 100644--- a/web/packages/base/components/utils/mui-theme.d.ts+++ b/web/packages/base/components/utils/mui-theme.d.ts@@ -1,4 +1,4 @@-import type { PaletteColor, PaletteColorOptions } from "@mui/material";+import type { PaletteColor } from "@mui/material";import React from "react";declare module "@mui/material/styles" {@@ -162,8 +162,9 @@ declare module "@mui/material/styles" {*/critical: PaletteColor;/**- * Various ad-hoc fixed colors used by our designs that do not change- * with the color scheme.+ * Various ad-hoc fixed colors used by our designs.+ *+ * These do not change with the color scheme.*/fixed: {white: string;@@ -173,6 +174,18 @@ declare module "@mui/material/styles" {*/overlayIndicatorMuted: string;};+ /**+ * Various ad-hoc fixed colors used by our designs.+ *+ * These change with the color scheme.+ */+ misc: {+ /**+ * Fill color for the backdrop of various modals, dialogs and+ * drawers etc.+ */+ backdropFaint: string;+ };/*** MUI as of v6 does not allow customizing shadows easily. This is due* for change: https://github.com/mui/material-ui/issues/44291.@@ -193,9 +206,10 @@ declare module "@mui/material/styles" {}interface PaletteOptions {- accent?: PaletteColorOptions;- critical?: PaletteColorOptions;+ accent?: Palette["accent"];+ critical?: Palette["critical"];fixed?: Palette["fixed"];+ misc?: Palette["misc"];boxShadow?: Palette["boxShadow"];}}diff --git a/web/packages/base/components/utils/theme.ts b/web/packages/base/components/utils/theme.tsindex 196b2a0756..b7ff38c288 100644--- a/web/packages/base/components/utils/theme.ts+++ b/web/packages/base/components/utils/theme.ts@@ -232,8 +232,8 @@ const darkThemeColors: Omit<ThemeColorsOptions, keyof FixedColors> = {paper2: "#252525",},backdrop: {- base: "rgba(0, 0, 0, 0.90)",- muted: "rgba(0, 0, 0, 0.65)",+ base: "rgba(0, 0, 0, 0.90)" /* unused */,+ muted: "rgba(0, 0, 0, 0.65)" /* unused */,faint: "rgba(0, 0, 0,0.20)",},text: {@@ -317,14 +317,14 @@ const getPalletteOptions = (// eslint-disable-next-line @typescript-eslint/ban-ts-comment// @ts-ignoremain: colors.accent.A500,- dark: colors.accent?.A700,+ dark: colors.accent!.A700!,contrastText: _color.fixed.white,},critical: {// eslint-disable-next-line @typescript-eslint/ban-ts-comment// @ts-ignoremain: colors.danger.A700,- dark: colors.danger?.A800,+ dark: colors.danger!.A800!,contrastText: _color.fixed.white,},background: {@@ -342,6 +342,9 @@ const getPalletteOptions = (},divider: colors.stroke?.faint,fixed: { ..._color.fixed },+ misc: {+ backdropFaint: colors.backdrop!.faint!,+ },// eslint-disable-next-line @typescript-eslint/ban-ts-comment// @ts-ignoreboxShadow: colors.boxShadow,@@ -491,7 +494,7 @@ const getComponents = (styleOverrides: {root: {".MuiBackdrop-root": {- backgroundColor: colors.backdrop?.faint,+ backgroundColor: palette.misc?.backdropFaint,},},},@@ -508,7 +511,7 @@ const getComponents = (styleOverrides: {root: {".MuiBackdrop-root": {- backgroundColor: colors.backdrop?.faint,+ backgroundColor: palette.misc?.backdropFaint,},"& .MuiDialog-paper": {boxShadow: palette.boxShadow?.float,