Skip to content

armgit / ente

Public Imported from GitHub
0

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

ts

Manav Rathi085e11302c61
diff --git a/web/packages/base/components/utils/mui-theme.d.ts b/web/packages/base/components/utils/mui-theme.d.ts
index 6399276a72..9866120b7f 100644
--- a/web/packages/base/components/utils/mui-theme.d.ts
+++ b/web/packages/base/components/utils/mui-theme.d.ts
@@ -68,8 +68,6 @@ declare module "@mui/material/styles" {
accent: ColorStrength;
warning: ColorStrength;
danger: ColorStrength;
- white: Omit<Strength, "faint">;
- black: Omit<Strength, "faint">;
}
interface ThemeColorsOptions {
@@ -82,8 +80,6 @@ declare module "@mui/material/styles" {
accent?: Partial<ColorStrength>;
warning?: Partial<ColorStrength>;
danger?: Partial<ColorStrength>;
- white?: Partial<Omit<Strength, "faint">>;
- black?: Partial<Omit<Strength, "faint">>;
}
interface ColorStrength {
@@ -98,8 +94,6 @@ declare module "@mui/material/styles" {
accent: string;
warning: string;
danger: string;
- white: string;
- black: string;
}
interface BackgroundType {
diff --git a/web/packages/base/components/utils/theme.ts b/web/packages/base/components/utils/theme.ts
index 0876564846..5de9f948b6 100644
--- a/web/packages/base/components/utils/theme.ts
+++ b/web/packages/base/components/utils/theme.ts
@@ -171,8 +171,6 @@ const commonFixedColors: Partial<Pick<ThemeColorsOptions, keyof FixedColors>> =
A500: "#FF6565",
A400: "#FF6F6F",
},
- white: { base: "#fff", muted: "rgba(255, 255, 255, 0.48)" },
- black: { base: "#000", muted: "rgba(0, 0, 0, 0.65)" },
};
const authAccentColor = {
@@ -306,7 +304,7 @@ const getPalletteOptions = (
main: colors.fill.base,
dark: colors.fill?.basePressed,
contrastText:
- themeColor === "dark" ? colors.black?.base : colors.white?.base,
+ themeColor === "dark" ? _color.fixed.black : _color.fixed.white,
},
secondary: {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -320,14 +318,14 @@ const getPalletteOptions = (
// @ts-ignore
main: colors.accent.A500,
dark: colors.accent?.A700,
- contrastText: colors.white?.base,
+ contrastText: _color.fixed.white,
},
critical: {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
main: colors.danger.A700,
dark: colors.danger?.A800,
- contrastText: colors.white?.base,
+ contrastText: _color.fixed.white,
},
background: {
default: colors.background?.base,