Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Prune

Manav Rathida5d81fe91ab
diff --git a/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx b/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx
index d89eb14f3c..b0ad5bff00 100644
--- a/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx
+++ b/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx
@@ -1029,11 +1029,11 @@ const FreehandCropRegion = forwardRef(
},
);
-const CropOverlayRegionTemplate = styled("div")(({ theme }) => ({
+const CropOverlayRegionTemplate = styled("div")({
position: "absolute",
- backgroundColor: theme.vars.palette.fixed.croppedAreaOverlay,
+ backgroundColor: "rgba(0 0 0 / 0.5)",
pointerEvents: "none",
-}));
+});
const PRESET_ASPECT_RATIOS = [
{
diff --git a/web/packages/base/components/utils/mui-theme.d.ts b/web/packages/base/components/utils/mui-theme.d.ts
index 317b8c48a2..ae28747335 100644
--- a/web/packages/base/components/utils/mui-theme.d.ts
+++ b/web/packages/base/components/utils/mui-theme.d.ts
@@ -145,15 +145,6 @@ declare module "@mui/material/styles" {
* The color of a switch when it is enabled.
*/
switchOn: string;
- /**
- * The transparent overlay on top of the region that will be cropped
- * during image editing.
- */
- croppedAreaOverlay: string;
- /**
- * Color of the total space in the usage bar on the storage card.
- */
- storageCardUsageFill: string;
};
/**
* MUI as of v6 does not allow customizing shadows easily. This is due
diff --git a/web/packages/base/components/utils/theme.ts b/web/packages/base/components/utils/theme.ts
index 33420cee2f..bff9e4e5dc 100644
--- a/web/packages/base/components/utils/theme.ts
+++ b/web/packages/base/components/utils/theme.ts
@@ -159,9 +159,6 @@ const _colors = {
E: "#ddd",
},
switchOn: "#2eca45",
- croppedAreaOverlay: "rgba(0 0 0 / 0.5)",
- overlayIndicatorMuted: "rgba(255 255 255 / 0.48)",
- storageCardUsageFill: "rgba(255 255 255 / 0.2)",
},
light: {
// Keep these solid.