diff --git a/client/src/components/design-elements/ResolutionCard.tsx b/client/src/components/design-elements/ResolutionCard.tsx index 08f0fb694..494c10519 100644 --- a/client/src/components/design-elements/ResolutionCard.tsx +++ b/client/src/components/design-elements/ResolutionCard.tsx @@ -26,7 +26,14 @@ export const ResolutionCard = ({ return ( - + Resolution diff --git a/client/src/components/design-elements/StatBox.tsx b/client/src/components/design-elements/StatBox.tsx index 7fa42d19c..a83215ac9 100644 --- a/client/src/components/design-elements/StatBox.tsx +++ b/client/src/components/design-elements/StatBox.tsx @@ -2,6 +2,7 @@ import Stack from "@mui/material/Stack"; import Typography from "@mui/material/Typography"; import Box from "@mui/material/Box"; import { useTheme } from "@mui/material/styles"; +import { lighten, darken } from "@mui/material/styles"; import useMediaQuery from "@mui/material/useMediaQuery"; import type { PaletteKey } from "@/theme/theme"; import { BaseBox, TooltipWithInfo } from "@/components/design-elements"; @@ -19,16 +20,19 @@ export const GradientBox: React.FC = ({ }) => { const theme = useTheme(); const isSmall = useMediaQuery(theme.breakpoints.down("md")); + const isLight = theme.palette.mode === "light"; + const paper = theme.palette.background.paper; + const paperStart = lighten(paper, isLight ? 0.06 : 0.08); + const paperEnd = paper; const bg = palette ? `linear-gradient(135deg, ${theme.palette[palette].light} 0%, ${theme.palette[palette].main} 100%)` - : theme.palette.background.paper; + : `linear-gradient(135deg, ${paperStart} 0%, ${paperEnd} 100%)`; return (