Skip to content

armgit / ente

Public Imported from GitHub
0

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

chore(MUI):update-icons-to-use-outlined

Aswin Asokd60a0ed4345c
diff --git a/web/apps/albums/src/public-album/viewer/components/PublicAlbumSingleFileViewer.tsx b/web/apps/albums/src/public-album/viewer/components/PublicAlbumSingleFileViewer.tsx
index 0a8d264000..91f0ad6e4f 100644
--- a/web/apps/albums/src/public-album/viewer/components/PublicAlbumSingleFileViewer.tsx
+++ b/web/apps/albums/src/public-album/viewer/components/PublicAlbumSingleFileViewer.tsx
@@ -4,7 +4,7 @@ import { downloadManager } from "@/public-album/download/services/download-manag
import CheckIcon from "@mui/icons-material/Check";
import ContentCopyIcon from "@mui/icons-material/ContentCopy";
import DownloadOutlinedIcon from "@mui/icons-material/DownloadOutlined";
-import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
+import ErrorOutlinedIcon from "@mui/icons-material/ErrorOutlined";
import FullscreenOutlinedIcon from "@mui/icons-material/FullscreenOutlined";
import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined";
import MoreVertIcon from "@mui/icons-material/MoreVert";
@@ -619,7 +619,7 @@ export const PublicAlbumSingleFileViewer: React.FC<
transform: "translateY(1px)",
}}
>
- <ErrorOutlineIcon
+ <ErrorOutlinedIcon
aria-hidden="true"
sx={{
fontSize: 20,
diff --git a/web/apps/locker/src/components/CollectionSidebar.tsx b/web/apps/locker/src/components/CollectionSidebar.tsx
index ec999f27f6..cdce9f3f1b 100644
--- a/web/apps/locker/src/components/CollectionSidebar.tsx
+++ b/web/apps/locker/src/components/CollectionSidebar.tsx
@@ -1,7 +1,7 @@
import type { LockerCollection } from "@/types";
import { isImportantCollection, visibleLockerCollections } from "@/types";
import CloudQueueOutlinedIcon from "@mui/icons-material/CloudQueueOutlined";
-import DeleteOutlineIcon from "@mui/icons-material/DeleteOutline";
+import DeleteOutlinedIcon from "@mui/icons-material/DeleteOutlined";
import GridViewOutlinedIcon from "@mui/icons-material/GridViewOutlined";
import HomeOutlinedIcon from "@mui/icons-material/HomeOutlined";
import LabelOutlinedIcon from "@mui/icons-material/LabelOutlined";
@@ -210,7 +210,7 @@ export const CollectionSidebar: React.FC<CollectionSidebarProps> = ({
/>
<SidebarRow
label={t("menuTrash")}
- icon={<DeleteOutlineIcon fontSize="small" />}
+ icon={<DeleteOutlinedIcon fontSize="small" />}
badgeContent={trashItemCount}
selected={isTrashView}
onClick={onSelectTrash}
diff --git a/web/apps/locker/src/components/ItemCard.tsx b/web/apps/locker/src/components/ItemCard.tsx
index 0f111efc63..8f3ad89876 100644
--- a/web/apps/locker/src/components/ItemCard.tsx
+++ b/web/apps/locker/src/components/ItemCard.tsx
@@ -8,7 +8,7 @@ import { getItemTitle, hasDownloadableObject } from "@/types";
import { CircleArrowDownLeftIcon } from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import CheckCircleRoundedIcon from "@mui/icons-material/CheckCircleRounded";
-import DeleteOutlineIcon from "@mui/icons-material/DeleteOutline";
+import DeleteOutlinedIcon from "@mui/icons-material/DeleteOutlined";
import EditOutlinedIcon from "@mui/icons-material/EditOutlined";
import MoreVertIcon from "@mui/icons-material/MoreVert";
import RadioButtonUncheckedRoundedIcon from "@mui/icons-material/RadioButtonUncheckedRounded";
@@ -403,7 +403,7 @@ const ItemOverflowMenu: React.FC<{
)}
{onDelete ? (
<OverflowMenuOption
- startIcon={<DeleteOutlineIcon />}
+ startIcon={<DeleteOutlinedIcon />}
color="critical"
onClick={() => onDelete(item)}
>
@@ -412,7 +412,7 @@ const ItemOverflowMenu: React.FC<{
) : (
deleteDisabledHint && (
<OverflowMenuOption
- startIcon={<DeleteOutlineIcon />}
+ startIcon={<DeleteOutlinedIcon />}
color="critical"
disabled
onClick={() => undefined}
@@ -456,7 +456,7 @@ const TrashActions: React.FC<{
onClick={() => onPermanentlyDelete([item])}
sx={{ color: "critical.main" }}
>
- <DeleteOutlineIcon sx={{ fontSize: 20 }} />
+ <DeleteOutlinedIcon sx={{ fontSize: 20 }} />
</IconButton>
</Tooltip>
)}
diff --git a/web/apps/locker/src/components/ItemDetailView.tsx b/web/apps/locker/src/components/ItemDetailView.tsx
index 326469e677..5bdef936ff 100644
--- a/web/apps/locker/src/components/ItemDetailView.tsx
+++ b/web/apps/locker/src/components/ItemDetailView.tsx
@@ -10,7 +10,7 @@ import type {
import { getItemTitle } from "@/types";
import CloseIcon from "@mui/icons-material/Close";
import ContentCopyIcon from "@mui/icons-material/ContentCopy";
-import DeleteOutlineIcon from "@mui/icons-material/DeleteOutline";
+import DeleteOutlinedIcon from "@mui/icons-material/DeleteOutlined";
import EditOutlinedIcon from "@mui/icons-material/EditOutlined";
import FileDownloadOutlinedIcon from "@mui/icons-material/FileDownloadOutlined";
import ShareOutlinedIcon from "@mui/icons-material/ShareOutlined";
@@ -174,7 +174,7 @@ export const ItemDetailView: React.FC<ItemDetailViewProps> = ({
: undefined
}
>
- <DeleteOutlineIcon fontSize="small" />
+ <DeleteOutlinedIcon fontSize="small" />
</IconButton>
</Box>
</Tooltip>
diff --git a/web/apps/locker/src/components/ItemList.tsx b/web/apps/locker/src/components/ItemList.tsx
index 7ccb76f692..50b28b7da4 100644
--- a/web/apps/locker/src/components/ItemList.tsx
+++ b/web/apps/locker/src/components/ItemList.tsx
@@ -22,7 +22,7 @@ import ArrowBackRoundedIcon from "@mui/icons-material/ArrowBackRounded";
import CheckCircleRoundedIcon from "@mui/icons-material/CheckCircleRounded";
import ChevronRightRoundedIcon from "@mui/icons-material/ChevronRightRounded";
import ClearRoundedIcon from "@mui/icons-material/ClearRounded";
-import DeleteOutlineIcon from "@mui/icons-material/DeleteOutline";
+import DeleteOutlinedIcon from "@mui/icons-material/DeleteOutlined";
import DeleteSweepOutlinedIcon from "@mui/icons-material/DeleteSweepOutlined";
import EditOutlinedIcon from "@mui/icons-material/EditOutlined";
import FileDownloadOutlinedIcon from "@mui/icons-material/FileDownloadOutlined";
@@ -1679,7 +1679,7 @@ const SelectionActionBar: React.FC<{
</Button>
<Button
color="critical"
- startIcon={<DeleteOutlineIcon />}
+ startIcon={<DeleteOutlinedIcon />}
onClick={onDelete}
disabled={bulkDownloading || !canDelete}
sx={{
@@ -2200,7 +2200,7 @@ const CollectionContextMenu: React.FC<{
)}
{onDelete && (
<OverflowMenuOption
- startIcon={<DeleteOutlineIcon />}
+ startIcon={<DeleteOutlinedIcon />}
color="critical"
onClick={onDelete}
>
@@ -2247,7 +2247,7 @@ const CollectionHeaderMenu: React.FC<{
)}
{onDelete && (
<OverflowMenuOption
- startIcon={<DeleteOutlineIcon />}
+ startIcon={<DeleteOutlinedIcon />}
color="critical"
onClick={onDelete}
>
diff --git a/web/apps/photos/src/components/Collections/CollectionShare.tsx b/web/apps/photos/src/components/Collections/CollectionShare.tsx
index faee9d9587..e725a9188b 100644
--- a/web/apps/photos/src/components/Collections/CollectionShare.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionShare.tsx
@@ -9,12 +9,12 @@ import CodeIcon from "@mui/icons-material/Code";
import ContentCopyIcon from "@mui/icons-material/ContentCopyOutlined";
import DoneIcon from "@mui/icons-material/Done";
import DownloadSharpIcon from "@mui/icons-material/DownloadSharp";
-import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
+import ErrorOutlinedIcon from "@mui/icons-material/ErrorOutlined";
import LinkIcon from "@mui/icons-material/Link";
import ModeEditIcon from "@mui/icons-material/ModeEdit";
import Photo, { default as PhotoIcon } from "@mui/icons-material/Photo";
import PublicIcon from "@mui/icons-material/Public";
-import RemoveCircleOutlineIcon from "@mui/icons-material/RemoveCircleOutline";
+import RemoveCircleOutlinedIcon from "@mui/icons-material/RemoveCircleOutlined";
import WorkspacesIcon from "@mui/icons-material/Workspaces";
import { Dialog, Stack, styled, Typography } from "@mui/material";
import NumberAvatar from "@mui/material/Avatar";
@@ -1694,7 +1694,7 @@ const ManagePublicShare: React.FC<ManagePublicShareProps> = ({
{isLinkExpired(publicURL.validTill) ? (
<RowButton
disabled
- startIcon={<ErrorOutlineIcon />}
+ startIcon={<ErrorOutlinedIcon />}
color="critical"
onClick={showManagePublicShare}
label={t("link_expired")}
@@ -1934,7 +1934,7 @@ const ManagePublicShareOptions: React.FC<ManagePublicShareOptionsProps> = ({
<RowButtonGroup>
<RowButton
color="critical"
- startIcon={<RemoveCircleOutlineIcon />}
+ startIcon={<RemoveCircleOutlinedIcon />}
onClick={handleRemovePublicLink}
label={t("remove_link")}
/>
diff --git a/web/packages/base/components/ErrorIndicator.tsx b/web/packages/base/components/ErrorIndicator.tsx
index 16f7ebf919..1548dd57c3 100644
--- a/web/packages/base/components/ErrorIndicator.tsx
+++ b/web/packages/base/components/ErrorIndicator.tsx
@@ -1,4 +1,4 @@
-import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
+import ErrorOutlinedIcon from "@mui/icons-material/ErrorOutlined";
import { Stack, Typography } from "@mui/material";
import { t } from "i18next";
import type React from "react";
@@ -14,7 +14,7 @@ export const ActivityErrorIndicator: React.FC<React.PropsWithChildren> = ({
children,
}) => (
<Stack sx={{ gap: 2, alignItems: "center" }}>
- <ErrorOutlineIcon color="secondary" />
+ <ErrorOutlinedIcon color="secondary" />
<Typography sx={{ color: "text.muted" }}>
{children ?? t("generic_error")}
</Typography>
@@ -33,7 +33,7 @@ export const InlineErrorIndicator: React.FC<React.PropsWithChildren> = ({
children,
}) => (
<Stack direction="row" sx={{ gap: "5px", alignItems: "center" }}>
- <ErrorOutlineIcon sx={{ fontSize: "16px", color: "critical.main" }} />
+ <ErrorOutlinedIcon sx={{ fontSize: "16px", color: "critical.main" }} />
<Typography variant="small" sx={{ color: "critical.main" }}>
{children ?? t("generic_error")}
</Typography>
diff --git a/web/packages/base/components/utils/dialog.tsx b/web/packages/base/components/utils/dialog.tsx
index 04cdc48711..bf8041d99d 100644
--- a/web/packages/base/components/utils/dialog.tsx
+++ b/web/packages/base/components/utils/dialog.tsx
@@ -1,4 +1,4 @@
-import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
+import ErrorOutlinedIcon from "@mui/icons-material/ErrorOutlined";
import { t } from "i18next";
import { useCallback, useState } from "react";
import type { MiniDialogAttributes } from "../MiniDialog";
@@ -53,7 +53,7 @@ export const errorDialogAttributes = (
return {
title,
- icon: <ErrorOutlineIcon />,
+ icon: <ErrorOutlinedIcon />,
message,
continue: { color: "critical" },
cancel: false,
diff --git a/web/packages/gallery/components/DownloadStatusNotifications.tsx b/web/packages/gallery/components/DownloadStatusNotifications.tsx
index 4ea89f1da1..e45c1d87e7 100644
--- a/web/packages/gallery/components/DownloadStatusNotifications.tsx
+++ b/web/packages/gallery/components/DownloadStatusNotifications.tsx
@@ -4,7 +4,7 @@ import {
Tick02Icon,
} from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
-import ErrorOutlineIcon from "@mui/icons-material/ErrorOutline";
+import ErrorOutlinedIcon from "@mui/icons-material/ErrorOutlined";
import ReplayIcon from "@mui/icons-material/Replay";
import {
Box,
@@ -221,7 +221,7 @@ export const DownloadStatusNotifications: React.FC<
// Determine the start icon based on state
let startIcon: React.ReactNode;
if (hasErrors) {
- startIcon = <ErrorOutlineIcon />;
+ startIcon = <ErrorOutlinedIcon />;
} else if (isComplete) {
startIcon = (
<GlowingIconWrapper>
diff --git a/web/packages/gallery/components/viewer/icons.tsx b/web/packages/gallery/components/viewer/icons.tsx
index 562a049f1d..c31ae9f705 100644
--- a/web/packages/gallery/components/viewer/icons.tsx
+++ b/web/packages/gallery/components/viewer/icons.tsx
@@ -18,7 +18,7 @@
// The transforms are not part of the originals, they have been applied
// separately to get these icons to align with the ones built into PhotoSwipe.
const paths = {
- // "@mui/icons-material/ErrorOutline"
+ // "@mui/icons-material/ErrorOutlined"
error: '<path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8" transform="translate(7, 5.7) scale(0.85)"',
// Custom heart outline icon (30x26 viewBox)
heart: '<path d="M12.4926 23.4794C8.64537 20.6025 1.02344 14.0254 1.02344 8.10676C1.02344 4.19475 3.89425 1.02344 7.84162 1.02344C9.88707 1.02344 11.9325 1.70526 14.6598 4.43253C17.3871 1.70526 19.4325 1.02344 21.478 1.02344C25.4253 1.02344 28.2962 4.19475 28.2962 8.10676C28.2962 14.0254 20.6743 20.6025 16.827 23.4794C15.5324 24.4474 13.7872 24.4474 12.4926 23.4794Z" stroke="white" stroke-width="2.04545" stroke-linecap="round" stroke-linejoin="round" fill="none"',
diff --git a/web/packages/new/photos/components/SelectedFileOptions.tsx b/web/packages/new/photos/components/SelectedFileOptions.tsx
index cf75881f4a..976bec7b27 100644
--- a/web/packages/new/photos/components/SelectedFileOptions.tsx
+++ b/web/packages/new/photos/components/SelectedFileOptions.tsx
@@ -16,7 +16,7 @@ import {
} from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import CheckCircleIcon from "@mui/icons-material/CheckCircle";
-import CheckCircleOutlineIcon from "@mui/icons-material/CheckCircleOutline";
+import CheckCircleOutlinedIcon from "@mui/icons-material/CheckCircleOutlined";
import CloseIcon from "@mui/icons-material/Close";
import { Box, Button, IconButton, Tooltip, Typography } from "@mui/material";
import { SpacedRow } from "ente-base/components/containers";
@@ -662,7 +662,7 @@ const SelectAllToggleButton: React.FC<SelectAllToggleButtonProps> = ({
isAllSelected ? (
<CheckCircleIcon fontSize="small" />
) : (
- <CheckCircleOutlineIcon
+ <CheckCircleOutlinedIcon
fontSize="small"
sx={{ color: "text.muted" }}
/>
diff --git a/web/packages/new/photos/pages/duplicates.tsx b/web/packages/new/photos/pages/duplicates.tsx
index 40386e245b..d2b082ec1d 100644
--- a/web/packages/new/photos/pages/duplicates.tsx
+++ b/web/packages/new/photos/pages/duplicates.tsx
@@ -1,6 +1,6 @@
import ArrowBackIcon from "@mui/icons-material/ArrowBack";
import DoneIcon from "@mui/icons-material/Done";
-import RemoveCircleOutlineIcon from "@mui/icons-material/RemoveCircleOutline";
+import RemoveCircleOutlinedIcon from "@mui/icons-material/RemoveCircleOutlined";
import SortIcon from "@mui/icons-material/Sort";
import {
Box,
@@ -387,7 +387,7 @@ type OptionsMenuProps = Pick<NavbarProps, "onDeselectAll">;
const OptionsMenu: React.FC<OptionsMenuProps> = ({ onDeselectAll }) => (
<OverflowMenu ariaID="duplicates-options">
<OverflowMenuOption
- startIcon={<RemoveCircleOutlineIcon />}
+ startIcon={<RemoveCircleOutlinedIcon />}
onClick={onDeselectAll}
>
{t("deselect_all")}