π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Treat white and black as constants
Manav Rathi4ace6675ce5a
diff --git a/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx b/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsxindex 1699245d33..7a38a86793 100644--- a/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx+++ b/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx@@ -999,7 +999,7 @@ const FreehandCropRegion = forwardRef(key={index}sx={{border: "1px solid",- borderColor: "fixed.white",+ borderColor: "white",boxSizing: "border-box",pointerEvents: "none",}}@@ -1011,9 +1011,9 @@ const FreehandCropRegion = forwardRef(position: "absolute",height: "10px",width: "10px",- backgroundColor: "fixed.white",+ backgroundColor: "white",border: "1px solid",- borderColor: "fixed.black",+ borderColor: "black",right: "-5px",bottom: "-5px",cursor: "se-resize",diff --git a/web/apps/photos/src/components/Sidebar/SubscriptionCard.tsx b/web/apps/photos/src/components/Sidebar/SubscriptionCard.tsxindex 4219a3134a..071a0e798b 100644--- a/web/apps/photos/src/components/Sidebar/SubscriptionCard.tsx+++ b/web/apps/photos/src/components/Sidebar/SubscriptionCard.tsx@@ -48,7 +48,7 @@ export const SubscriptionCard: React.FC<SubscriptionCardProps> = ({sx={{ borderRadius: "8px" }}/>) : (- <Box sx={{ position: "relative", color: "fixed.white" }}>+ <Box sx={{ position: "relative", color: "white" }}><BackgroundOverlay /><SubscriptionCardContentOverlay userDetails={userDetails} /><ClickOverlay onClick={onClick} />diff --git a/web/apps/photos/src/components/pages/gallery/PreviewCard.tsx b/web/apps/photos/src/components/pages/gallery/PreviewCard.tsxindex ff3aeb0240..be05fda6cf 100644--- a/web/apps/photos/src/components/pages/gallery/PreviewCard.tsx+++ b/web/apps/photos/src/components/pages/gallery/PreviewCard.tsx@@ -82,7 +82,7 @@ const Check = styled("input")<{ $active: boolean }>(content: "";background-color: ${theme.vars.palette.accent.main};border-color: ${theme.vars.palette.accent.main};- color: ${theme.vars.palette.fixed.white};+ color: white;}/* checkmark foreground (tick) */&:checked::after {@@ -137,8 +137,7 @@ const InSelectRangeOverlay = styled(Overlay)(`,);-const FileAndCollectionNameOverlay = styled("div")(- ({ theme }) => `+const FileAndCollectionNameOverlay = styled("div")`width: 100%;bottom: 0;left: 0;@@ -158,10 +157,9 @@ const FileAndCollectionNameOverlay = styled("div")(justify-content: center;align-items: center;flex-direction: column;- color: ${theme.vars.palette.fixed.white};+ color: white;position: absolute;-`,-);+`;const SelectedOverlay = styled(Overlay)(({ theme }) => `diff --git a/web/packages/base/components/EnteSwitch.tsx b/web/packages/base/components/EnteSwitch.tsxindex 63a4afff20..6cd3b75b00 100644--- a/web/packages/base/components/EnteSwitch.tsx+++ b/web/packages/base/components/EnteSwitch.tsx@@ -16,7 +16,7 @@ export const EnteSwitch: React.FC<SwitchProps> = styled((props) => (transitionDuration: "300ms","&.Mui-checked": {transform: "translateX(16px)",- color: theme.vars.palette.fixed.white,+ color: "white","& + .MuiSwitch-track": {opacity: 1,border: 0,diff --git a/web/packages/base/components/utils/mui-theme.d.ts b/web/packages/base/components/utils/mui-theme.d.tsindex ae28747335..849c8e2569 100644--- a/web/packages/base/components/utils/mui-theme.d.ts+++ b/web/packages/base/components/utils/mui-theme.d.ts@@ -120,8 +120,6 @@ declare module "@mui/material/styles" {* These do not change with the color scheme.*/fixed: {- white: string;- black: string;/*** Various fixed shades of gray.* TODO(LM) - audit and rename.diff --git a/web/packages/new/photos/components/Tiles.tsx b/web/packages/new/photos/components/Tiles.tsxindex 8954adf076..2fcb582c64 100644--- a/web/packages/new/photos/components/Tiles.tsx+++ b/web/packages/new/photos/components/Tiles.tsx@@ -130,13 +130,11 @@ export const PreviewItemTile = styled(BaseTile)`/*** A rectangular, TV-ish tile used in the gallery bar.*/-export const BarItemTile = styled(BaseTile)(- ({ theme }) => `+export const BarItemTile = styled(BaseTile)`width: 90px;height: 64px;- color: ${theme.vars.palette.fixed.white};-`,-);+ color: white;+`;/*** A square tile used on the duplicates listing.