Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix(CollectionSortOptions):light-mode-color-fixed

Aswin Asokad0dcd71593f
diff --git a/web/packages/new/photos/components/CollectionsSortOptions.tsx b/web/packages/new/photos/components/CollectionsSortOptions.tsx
index 6704d36665..5f164a68bf 100644
--- a/web/packages/new/photos/components/CollectionsSortOptions.tsx
+++ b/web/packages/new/photos/components/CollectionsSortOptions.tsx
@@ -224,20 +224,14 @@ const SortCategoryOption: React.FC<SortCategoryOptionProps> = ({
const StyledMenu = styled(Menu)(({ theme }) => ({
"& .MuiPaper-root": {
- backgroundColor: "#1f1f1f",
+ backgroundColor: theme.vars.palette.background.elevatedPaper,
minWidth: 220,
width: 220,
borderRadius: 12,
- boxShadow: "0 8px 24px rgba(0, 0, 0, 0.35)",
+ boxShadow: theme.vars.palette.boxShadow.menu,
marginTop: 6,
},
"& .MuiList-root": { padding: theme.spacing(1) },
- ...theme.applyStyles("dark", {
- "& .MuiPaper-root": {
- backgroundColor: "#161616",
- boxShadow: "0 8px 24px rgba(0, 0, 0, 0.6)",
- },
- }),
}));
const StyledMenuItem = styled(MenuItem)(({ theme }) => ({
@@ -246,9 +240,9 @@ const StyledMenuItem = styled(MenuItem)(({ theme }) => ({
gap: 12,
padding: theme.spacing(1.5, 2),
borderRadius: 10,
- color: "#f5f5f5",
+ color: theme.vars.palette.text.base,
fontSize: 15,
- "&:hover": { backgroundColor: "rgba(255, 255, 255, 0.08)" },
+ "&:hover": { backgroundColor: theme.vars.palette.fill.faintHover },
"& .MuiListItemIcon-root": { minWidth: 0, color: "inherit" },
"& .MuiListItemText-root": { margin: 0 },
"& .MuiListItemText-primary": { color: "inherit", fontSize: "inherit" },