π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Conv
Manav Rathi003f1ec0e87a
diff --git a/web/apps/photos/src/components/DeleteAccountModal.tsx b/web/apps/photos/src/components/DeleteAccountModal.tsxindex 76917a7c2b..7fccf9a54a 100644--- a/web/apps/photos/src/components/DeleteAccountModal.tsx+++ b/web/apps/photos/src/components/DeleteAccountModal.tsx@@ -240,9 +240,9 @@ const FeedbackInput: React.FC<FeedbackInputProps> = ({value={value}onChange={(e) => onChange(e.target.value)}placeholder={t("delete_account_feedback_placeholder")}- sx={(theme) => ({+ sx={{border: "1px solid",- borderColor: theme.colors.stroke.faint,+ borderColor: "stroke.faint",borderRadius: "8px",padding: "12px",".MuiInputBase-formControl": {@@ -250,7 +250,7 @@ const FeedbackInput: React.FC<FeedbackInputProps> = ({borderBottom: "none !important",},},- })}+ }}/><Typography variant="small" sx={{ px: "8px", color: "critical.main" }}>{errorMessage}diff --git a/web/apps/photos/src/components/DropdownInput.tsx b/web/apps/photos/src/components/DropdownInput.tsxindex 7b4d695b07..ea6b7c3594 100644--- a/web/apps/photos/src/components/DropdownInput.tsx+++ b/web/apps/photos/src/components/DropdownInput.tsx@@ -69,16 +69,16 @@ export default function DropdownInput<T extends string>({},},}}- sx={(theme) => ({+ sx={{"::before , ::after": {borderBottom: "none !important",},".MuiInput-root": {- background: theme.colors.fill.faint,+ background: "fill.faint",borderRadius: "8px",},".MuiSelect-select": {- background: theme.colors.fill.faint,+ background: "fill.faint",borderRadius: "8px",},"&&& .MuiSelect-select": {@@ -86,9 +86,9 @@ export default function DropdownInput<T extends string>({},".MuiSelect-icon": {mr: "12px",- color: theme.colors.stroke.muted,+ color: "stroke.muted",},- })}+ }}renderValue={(selected) => {return !selected?.length ? (<Box sx={{ color: "text.muted" }}>diff --git a/web/apps/photos/src/components/PhotoList/index.tsx b/web/apps/photos/src/components/PhotoList/index.tsxindex cf7c74737b..148106d17f 100644--- a/web/apps/photos/src/components/PhotoList/index.tsx+++ b/web/apps/photos/src/components/PhotoList/index.tsx@@ -132,13 +132,15 @@ const ListItemContainer = styled(FlexWrapper)<{ span: number }>`grid-column: span ${(props) => props.span};`;-const DateContainer = styled(ListItemContainer)`+const DateContainer = styled(ListItemContainer)(+ ({ theme }) => `white-space: nowrap;overflow: hidden;text-overflow: ellipsis;height: ${DATE_CONTAINER_HEIGHT}px;- color: ${({ theme }) => theme.colors.text.muted};-`;+ color: ${theme.vars.palette.text.muted};+`,+);const FooterContainer = styled(ListItemContainer)`margin-bottom: 0.75rem;diff --git a/web/packages/base/components/utils/mui-theme.d.ts b/web/packages/base/components/utils/mui-theme.d.tsindex 1e0ba330cd..c67cd65116 100644--- a/web/packages/base/components/utils/mui-theme.d.ts+++ b/web/packages/base/components/utils/mui-theme.d.ts@@ -1,6 +1,9 @@import type { PaletteColor } from "@mui/material";import React from "react";+// Import the module augmentation that provides types for `theme.vars.*`.+import type {} from "@mui/material/themeCssVarsAugmentation";+declare module "@mui/material/styles" {interface Theme {colors: ThemeColors;