π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Update styles
vishnukvmdf65d7182c9c8
diff --git a/web/apps/locker/src/components/CreateItemDialog.tsx b/web/apps/locker/src/components/CreateItemDialog.tsxindex 35f51fb789..d53d89aa69 100644--- a/web/apps/locker/src/components/CreateItemDialog.tsx+++ b/web/apps/locker/src/components/CreateItemDialog.tsx@@ -280,7 +280,7 @@ export const CreateItemDialog: React.FC<CreateItemDialogProps> = ({sx={{ px: { xs: 4, sm: 5 }, py: { xs: 2.5, sm: 3 } }}>{!isEditMode && !selectedOption && (- <Stack sx={{ gap: 2, pt: 1 }}>+ <Stack sx={{ gap: 2, pt: 0.5 }}><Typography variant="body" sx={{ color: "text.muted" }}>{t("informationDescription")}</Typography>@@ -302,7 +302,7 @@ export const CreateItemDialog: React.FC<CreateItemDialogProps> = ({)}{isFileMode && (- <Stack sx={{ gap: 2.5, pt: 1 }}>+ <Stack sx={{ gap: 2.5, pt: 0.5 }}><inputref={fileInputRef}type="file"@@ -454,7 +454,7 @@ export const CreateItemDialog: React.FC<CreateItemDialogProps> = ({)}{selectedType && (- <Stack sx={{ gap: 2.5, pt: 1 }}>+ <Stack sx={{ gap: 2.5, pt: 0.5 }}><ItemFormtype={selectedType}data={formData}diff --git a/web/apps/locker/src/components/ItemList.tsx b/web/apps/locker/src/components/ItemList.tsxindex 54d03d7b93..bf36c8e2a8 100644--- a/web/apps/locker/src/components/ItemList.tsx+++ b/web/apps/locker/src/components/ItemList.tsx@@ -591,6 +591,7 @@ export const ItemList: React.FC<ItemListProps> = ({overflowY: "auto",overscrollBehavior: "contain",WebkitOverflowScrolling: "touch",+ backgroundColor: "#08090A",...theme.applyStyles("light", {backgroundColor: "#F3F4F6",}),@@ -602,6 +603,7 @@ export const ItemList: React.FC<ItemListProps> = ({pb: isTrashView? 3: "calc(env(safe-area-inset-bottom) + 120px)",+ backgroundColor: "#08090A",...theme.applyStyles("light", {backgroundColor: "#F3F4F6",}),@@ -771,16 +773,22 @@ export const ItemList: React.FC<ItemListProps> = ({/>{displayCollections.length > 0 ? (- <CollectionGrid- collections={displayCollections}- onSelectCollection={onSelectCollection}- onShareCollection={onShareCollection}- onRequestRenameCollection={(collection) => {- setRenameCollectionID(collection.id);- setRenameValue(collection.name);- }}- onDeleteCollection={onDeleteCollection}- />+ <Box sx={{ mt: 1.25 }}>+ <CollectionGrid+ collections={displayCollections}+ onSelectCollection={onSelectCollection}+ onShareCollection={onShareCollection}+ onRequestRenameCollection={(+ collection,+ ) => {+ setRenameCollectionID(+ collection.id,+ );+ setRenameValue(collection.name);+ }}+ onDeleteCollection={onDeleteCollection}+ />+ </Box>) : (<EmptyStatetitle={t("noCollections")}@@ -1076,7 +1084,7 @@ export const ItemList: React.FC<ItemListProps> = ({><DialogTitle>{t("restoreToCollection")}</DialogTitle><DialogContent>- <Stack sx={{ gap: 1, py: 1 }}>+ <Stack sx={{ gap: 1, pt: 0.25, pb: 1 }}>{displayCollections.length > 0 ? (displayCollections.map((collection) => (<Chip@@ -1125,7 +1133,7 @@ export const ItemList: React.FC<ItemListProps> = ({><DialogTitle>{t("renameCollection")}</DialogTitle><DialogContent>- <Stack sx={{ gap: 2, py: 1 }}>+ <Stack sx={{ gap: 2, pt: 0.25, pb: 1 }}><TextFieldvalue={renameValue}onChange={(event) =>@@ -1163,7 +1171,7 @@ export const ItemList: React.FC<ItemListProps> = ({><DialogTitle>{t("createNewCollection")}</DialogTitle><DialogContent>- <Stack sx={{ gap: 2, py: 1 }}>+ <Stack sx={{ gap: 2, pt: 0.25, pb: 1 }}><TextFieldvalue={createCollectionName}onChange={(event) => {@@ -1536,12 +1544,12 @@ const CollectionGrid: React.FC<{const currentUserID = ensureLocalUser().id;return (- <Stack+ <Boxsx={{width: "100%",- maxWidth: { xs: "100%", sm: "440px" },+ maxWidth: contentMaxWidth,mx: "auto",- gap: 1.25,+ gap: 1.5,}}>{collections.map((collection) => (@@ -1569,7 +1577,7 @@ const CollectionGrid: React.FC<{}/>))}- </Stack>+ </Box>);};@@ -1667,7 +1675,7 @@ const CollectionCard: React.FC<{<ButtonBasecomponent="div"onClick={onClick}- sx={{+ sx={(theme) => ({width: "100%",display: "flex",alignItems: "center",@@ -1677,10 +1685,10 @@ const CollectionCard: React.FC<{py: 1.5,minHeight: 84,borderRadius: "16px",- background:+ backgroundColor:collection.items.length > 0- ? "linear-gradient(180deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.055) 100%)"- : "linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.022) 100%)",+ ? "rgba(255, 255, 255, 0.06)"+ : "rgba(255, 255, 255, 0.03)",border: 1,borderStyle: "solid",borderColor:@@ -1689,11 +1697,26 @@ const CollectionCard: React.FC<{: "rgba(255, 255, 255, 0.08)",transition: "background-color 0.15s, border-color 0.15s","&:hover": {- background:- "linear-gradient(180deg, rgba(255, 255, 255, 0.090) 0%, rgba(255, 255, 255, 0.065) 100%)",+ backgroundColor:+ collection.items.length > 0+ ? "rgba(255, 255, 255, 0.08)"+ : "rgba(255, 255, 255, 0.05)",borderColor: "rgba(255, 255, 255, 0.13)",},- }}+ ...theme.applyStyles("light", {+ backgroundColor:+ collection.items.length > 0 ? "#FFFFFF" : "#F8FAFC",+ borderColor:+ collection.items.length > 0+ ? "rgba(17, 24, 39, 0.08)"+ : "rgba(17, 24, 39, 0.06)",+ "&:hover": {+ backgroundColor:+ collection.items.length > 0 ? "#FFFFFF" : "#F1F5F9",+ borderColor: "rgba(17, 24, 39, 0.12)",+ },+ }),+ })}><Stackdirection="row"diff --git a/web/apps/locker/src/components/LockerCollectionShareDrawer.tsx b/web/apps/locker/src/components/LockerCollectionShareDrawer.tsxindex 6c50e9bc37..8fcccd22bb 100644--- a/web/apps/locker/src/components/LockerCollectionShareDrawer.tsx+++ b/web/apps/locker/src/components/LockerCollectionShareDrawer.tsx@@ -374,6 +374,7 @@ export const LockerCollectionShareDrawer: React.FC<sx={{minHeight: 48,borderRadius: "14px",+ color: "#FFFFFF",background:"linear-gradient(135deg, #1071FF 0%, #0056CC 100%)",boxShadow:@@ -399,9 +400,16 @@ export const LockerCollectionShareDrawer: React.FC<fullWidthmaxWidth="xs">- <DialogTitle>{t("addEmail")}</DialogTitle>+ <DialogTitle+ sx={(theme) => ({+ ...theme.applyStyles("light", {}),+ color: "#FFFFFF",+ })}+ >+ {t("addEmail")}+ </DialogTitle><DialogContent>- <Stack sx={{ gap: 2, py: 1 }}>+ <Stack sx={{ gap: 2, pt: 0.25, pb: 1 }}><TextFieldtype="email"label={t("enterEmail")}@@ -419,6 +427,38 @@ export const LockerCollectionShareDrawer: React.FC<void handleAddViewer();}}}+ sx={(theme) => ({+ "& .MuiInputLabel-root": {+ color: "rgba(255, 255, 255, 0.72)",+ },+ "& .MuiInputLabel-root.Mui-focused": {+ color: "#FFFFFF",+ },+ "& .MuiInputBase-input": {+ color: "#FFFFFF",+ },+ "& .MuiFormHelperText-root": {+ color: viewerEmailError+ ? theme.vars.palette.critical.main+ : "rgba(255, 255, 255, 0.64)",+ },+ ...theme.applyStyles("light", {+ "& .MuiInputLabel-root": {+ color: theme.vars.palette.text.muted,+ },+ "& .MuiInputLabel-root.Mui-focused": {+ color: theme.vars.palette.text.base,+ },+ "& .MuiInputBase-input": {+ color: theme.vars.palette.text.base,+ },+ "& .MuiFormHelperText-root": {+ color: viewerEmailError+ ? theme.vars.palette.critical.main+ : theme.vars.palette.text.muted,+ },+ }),+ })}/><Stack direction="row" sx={{ gap: 1 }}><Button@@ -426,6 +466,12 @@ export const LockerCollectionShareDrawer: React.FC<color="secondary"onClick={handleCloseAddViewer}disabled={isSubmittingViewer}+ sx={(theme) => ({+ color: "#FFFFFF",+ ...theme.applyStyles("light", {+ color: theme.vars.palette.text.base,+ }),+ })}>{t("cancel")}</Button>@@ -434,6 +480,7 @@ export const LockerCollectionShareDrawer: React.FC<variant="contained"onClick={() => void handleAddViewer()}disabled={isSubmittingViewer}+ sx={{ color: "#FFFFFF" }}>{isSubmittingViewer? t("sharing")diff --git a/web/packages/base/components/utils/theme.ts b/web/packages/base/components/utils/theme.tsindex 7a8a46c2a2..448b2468e8 100644--- a/web/packages/base/components/utils/theme.ts+++ b/web/packages/base/components/utils/theme.ts@@ -966,6 +966,16 @@ const getComponents = (appName: AppName): Components => {(muiIconButtonStyleOverrides.root as| Record<string, unknown>| undefined) ?? {};+ const muiInputBaseStyleOverrides = (components.MuiInputBase+ ?.styleOverrides ?? {}) as Record<string, unknown>;+ const muiInputBaseFormControlStyleOverrides =+ (muiInputBaseStyleOverrides.formControl as+ | Record<string, unknown>+ | undefined) ?? {};+ const muiDialogTitleStyleOverrides = (components.MuiDialogTitle+ ?.styleOverrides ?? {}) as Record<string, unknown>;+ const muiDialogContentStyleOverrides = (components.MuiDialogContent+ ?.styleOverrides ?? {}) as Record<string, unknown>;if (appName === "locker") {return {@@ -994,6 +1004,72 @@ const getComponents = (appName: AppName): Components => {NonNullable<Components["MuiIconButton"]>["styleOverrides"]>,},+ MuiInputBase: {+ ...components.MuiInputBase,+ styleOverrides: {+ ...muiInputBaseStyleOverrides,+ formControl: {+ ...muiInputBaseFormControlStyleOverrides,+ borderRadius: "16px",+ },+ } as NonNullable<+ NonNullable<Components["MuiInputBase"]>["styleOverrides"]+ >,+ },+ MuiOutlinedInput: {+ ...components.MuiOutlinedInput,+ styleOverrides: {+ ...components.MuiOutlinedInput?.styleOverrides,+ root: {+ ...(components.MuiOutlinedInput?.styleOverrides+ ?.root as Record<string, unknown> | undefined),+ borderRadius: "16px",+ },+ } as NonNullable<+ NonNullable<Components["MuiOutlinedInput"]>["styleOverrides"]+ >,+ },+ MuiFilledInput: {+ ...components.MuiFilledInput,+ styleOverrides: {+ ...components.MuiFilledInput?.styleOverrides,+ root: {+ ...(components.MuiFilledInput?.styleOverrides+ ?.root as Record<string, unknown> | undefined),+ borderRadius: "16px",+ },+ } as NonNullable<+ NonNullable<Components["MuiFilledInput"]>["styleOverrides"]+ >,+ },+ MuiDialogTitle: {+ ...components.MuiDialogTitle,+ styleOverrides: {+ ...muiDialogTitleStyleOverrides,+ root: {+ ...(muiDialogTitleStyleOverrides.root as+ | Record<string, unknown>+ | undefined),+ paddingBottom: "12px",+ },+ } as NonNullable<+ NonNullable<Components["MuiDialogTitle"]>["styleOverrides"]+ >,+ },+ MuiDialogContent: {+ ...components.MuiDialogContent,+ styleOverrides: {+ ...muiDialogContentStyleOverrides,+ root: {+ ...(muiDialogContentStyleOverrides.root as+ | Record<string, unknown>+ | undefined),+ paddingTop: "8px",+ },+ } as NonNullable<+ NonNullable<Components["MuiDialogContent"]>["styleOverrides"]+ >,+ },};}