From 3e89692ebc27cc77099b14d103ea14cec9218cdf Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Tue, 4 Feb 2025 16:25:17 +0530 Subject: [PATCH] Switch --- web/packages/base/components/EnteSwitch.tsx | 7 +++---- web/packages/base/components/utils/mui-theme.d.ts | 4 ++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/web/packages/base/components/EnteSwitch.tsx b/web/packages/base/components/EnteSwitch.tsx index 92c3dac380..43cd50ceae 100644 --- a/web/packages/base/components/EnteSwitch.tsx +++ b/web/packages/base/components/EnteSwitch.tsx @@ -28,10 +28,9 @@ export const EnteSwitch: React.FC = styled((props) => ( }, "&.Mui-disabled .MuiSwitch-thumb": { color: theme.palette.grey[600], - // TODO(LM): - // ...theme.applyStyles("light", { - // color: theme.palette.grey[100], - // }), + ...theme.applyStyles("light", { + color: theme.palette.grey[100], + }), }, "&.Mui-disabled + .MuiSwitch-track": { opacity: 0.3, diff --git a/web/packages/base/components/utils/mui-theme.d.ts b/web/packages/base/components/utils/mui-theme.d.ts index 3c0606946e..663d391330 100644 --- a/web/packages/base/components/utils/mui-theme.d.ts +++ b/web/packages/base/components/utils/mui-theme.d.ts @@ -117,6 +117,10 @@ declare module "@mui/material/styles" { * Various ad-hoc fixed colors used by our designs. * * These do not change with the color scheme. + * + * Some places in the code also use the grey PaletteColor provided by + * MUI whose corresponding color values can be seen at + * https://mui.com/material-ui/customization/default-theme/ */ fixed: { /**