Skip to content

armgit / ente

Public Imported from GitHub
0

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

Rename

Manav Rathic7fab49d68b9
diff --git a/web/packages/base/components/utils/mui-theme.d.ts b/web/packages/base/components/utils/mui-theme.d.ts
index da4d17062b..bbf0c906ac 100644
--- a/web/packages/base/components/utils/mui-theme.d.ts
+++ b/web/packages/base/components/utils/mui-theme.d.ts
@@ -87,9 +87,8 @@ declare module "@mui/material/styles" {
* They come in three strengths which are meant to play nicely with the
* corresponding strengths of "text.*" and "stroke.*".
*
- * The faint strength also comes with a hover variant, useful to
- * indicate the hover state of buttons and menu items. TODO(LM) -
- * consider moving to others.
+ * The strength comes with a hover variant, useful to indicate the hover
+ * state of buttons and menu items that use the corresponding fill.
*/
fill: {
base: string;
diff --git a/web/packages/base/components/utils/theme.ts b/web/packages/base/components/utils/theme.ts
index a0986fcd72..15c242a470 100644
--- a/web/packages/base/components/utils/theme.ts
+++ b/web/packages/base/components/utils/theme.ts
@@ -167,8 +167,8 @@ const _colors = {
base: "#000",
muted: "rgba(0, 0, 0, 0.12)",
faint: "rgba(0, 0, 0, 0.04)",
- basePressed: "rgba(0, 0, 0, 0.87))",
- faintPressed: "rgba(0, 0, 0, 0.08)",
+ baseHover: "rgba(0, 0, 0, 0.87)",
+ faintHover: "rgba(0, 0, 0, 0.08)",
},
stroke: {
base: "#000",
@@ -201,8 +201,8 @@ const _colors = {
base: "#fff",
muted: "rgba(255, 255, 255, 0.16)",
faint: "rgba(255, 255, 255, 0.12)",
- basePressed: "rgba(255, 255, 255, 0.90)",
- faintPressed: "rgba(255, 255, 255, 0.06)",
+ baseHover: "rgba(255, 255, 255, 0.90)",
+ faintHover: "rgba(255, 255, 255, 0.06)",
},
stroke: {
base: "#ffffff",
@@ -233,12 +233,12 @@ const getColorSchemes = (colors: ReturnType<typeof getColors>) => ({
},
primary: {
main: colors.dark.fill.base,
- dark: colors.dark.fill.basePressed,
- contrastText: colors.fixed.white,
+ dark: colors.dark.fill.baseHover,
+ contrastText: colors.dark.text.base,
},
secondary: {
main: colors.dark.fill.faint,
- dark: colors.dark.fill.faintPressed,
+ dark: colors.dark.fill.faintHover,
contrastText: colors.dark.text.base,
},
success: { main: colors.fixed.success },
@@ -273,7 +273,7 @@ const getColorSchemes = (colors: ReturnType<typeof getColors>) => ({
base: colors.dark.fill.base,
muted: colors.dark.fill.muted,
faint: colors.dark.fill.faint,
- faintHover: colors.dark.fill.faintPressed,
+ faintHover: colors.dark.fill.faintHover,
},
stroke: {
base: colors.dark.stroke.base,