This commit is contained in:
Manav Rathi
2025-02-04 16:25:17 +05:30
parent 847cba9a8b
commit 3e89692ebc
2 changed files with 7 additions and 4 deletions

View File

@@ -28,10 +28,9 @@ export const EnteSwitch: React.FC<SwitchProps> = 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,

View File

@@ -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: {
/**