Skip to content

armgit / ente

Public Imported from GitHub
0

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

Allow customization

Manav Rathi3988c9ad9d74
diff --git a/web/packages/new/photos/components/Tiles.tsx b/web/packages/new/photos/components/Tiles.tsx
index 2dc30f7807..bd54bd085c 100644
--- a/web/packages/new/photos/components/Tiles.tsx
+++ b/web/packages/new/photos/components/Tiles.tsx
@@ -1,4 +1,5 @@
import { Overlay } from "@/base/components/containers";
+import { wipTheme } from "@/base/components/utils/theme";
import { downloadManager } from "@/gallery/services/download";
import { type EnteFile } from "@/media/file";
import {
@@ -195,15 +196,19 @@ export const TileTextOverlay = styled(Overlay)`
* A variation of {@link TileTextOverlay} for use with larger tiles like the
* {@link CollectionTile}.
*/
-export const LargeTileTextOverlay = styled(Overlay)`
- padding: 8px;
- color: white;
- background: linear-gradient(
- 0deg,
- rgba(0, 0, 0, 0.1) 0%,
- rgba(0, 0, 0, 0.5) 86.46%
- );
-`;
+export const LargeTileTextOverlay = styled(Overlay)(({ theme }) => ({
+ padding: "8px",
+ color: "white",
+ ...(wipTheme
+ ? {
+ background:
+ "linear-gradient(0deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 86.46%)",
+ }
+ : {
+ background:
+ "linear-gradient(0deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 86.46%)",
+ }),
+}));
/**
* A container for "+", suitable for use with a {@link LargeTileTextOverlay}.