π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Const
Manav Rathi3008fac19c40
diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsxindex 4f1d63a5b5..bb5c12665a 100644--- a/web/apps/photos/src/components/Collections/CollectionShare.tsx+++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx@@ -18,6 +18,7 @@ import type {} from "@/media/collection";import { COLLECTION_ROLE, type CollectionUser } from "@/media/collection";import { PublicLinkCreated } from "@/new/photos/components/share/PublicLinkCreated";+import { avatarTextColor } from "@/new/photos/services/avatar";import type { CollectionSummary } from "@/new/photos/services/collection/ui";import { AppContext, useAppContext } from "@/new/photos/types/context";import { FlexWrapper } from "@ente/shared/components/Container";@@ -440,7 +441,7 @@ const AvatarCounter = styled(NumberAvatar)({height: 20,width: 20,fontSize: 10,- color: "#fff",+ color: avatarTextColor,});const SHAREE_AVATAR_LIMIT = 6;diff --git a/web/apps/photos/src/components/pages/gallery/Avatar.tsx b/web/apps/photos/src/components/pages/gallery/Avatar.tsxindex f11c3fd400..e2d2e5604c 100644--- a/web/apps/photos/src/components/pages/gallery/Avatar.tsx+++ b/web/apps/photos/src/components/pages/gallery/Avatar.tsx@@ -3,6 +3,7 @@ import { EnteFile } from "@/media/file";import {avatarBackgroundColor,avatarBackgroundColorPublicCollectedFile,+ avatarTextColor,} from "@/new/photos/services/avatar";import { styled } from "@mui/material";import { GalleryContext } from "pages/gallery";@@ -27,7 +28,7 @@ const AvatarBase = styled("div")<{display: flex;justify-content: center;align-items: center;- color: #fff;+ color: ${avatarTextColor};font-weight: bold;font-size: ${({ size }) => `${Math.floor(size / 2)}px`};`;diff --git a/web/apps/photos/src/pages/shared-albums.tsx b/web/apps/photos/src/pages/shared-albums.tsxindex fbbfd7b947..4ff5838107 100644--- a/web/apps/photos/src/pages/shared-albums.tsx+++ b/web/apps/photos/src/pages/shared-albums.tsx@@ -7,7 +7,10 @@ import {Stack100vhCenter,} from "@/base/components/containers";import { EnteLogoSVG } from "@/base/components/EnteLogo";-import { LoadingIndicator, TranslucentLoadingOverlay } from "@/base/components/loaders";+import {+ LoadingIndicator,+ TranslucentLoadingOverlay,+} from "@/base/components/loaders";import type { ButtonishProps } from "@/base/components/mui";import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";import { NavbarBase, SelectionBar } from "@/base/components/Navbar";diff --git a/web/packages/new/photos/services/avatar.ts b/web/packages/new/photos/services/avatar.tsindex 9c5f8a0900..6c5395302e 100644--- a/web/packages/new/photos/services/avatar.ts+++ b/web/packages/new/photos/services/avatar.ts@@ -10,6 +10,13 @@*/export const avatarBackgroundColorPublicCollectedFile = "#000000";+/**+ * Foreground / text color for the avatars.+ *+ * All avatar background colors are chosen to work with this.+ */+export const avatarTextColor = "#fff";+/*** The ordered list of CSS colors for the owner indicator avatar background on* files that the user does not own in shared albums.