From 6eedaa5ca0a4f3e35511578aee48f6aed5f34687 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Tue, 21 Jan 2025 10:58:08 -0800 Subject: [PATCH] various infra details page color fixes --- Client/src/Pages/Infrastructure/Details/index.jsx | 4 ++-- Client/src/Utils/Theme/constants.js | 2 +- Client/src/Utils/Theme/globalTheme.js | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Client/src/Pages/Infrastructure/Details/index.jsx b/Client/src/Pages/Infrastructure/Details/index.jsx index d38be8098..acd1bafb1 100644 --- a/Client/src/Pages/Infrastructure/Details/index.jsx +++ b/Client/src/Pages/Infrastructure/Details/index.jsx @@ -408,8 +408,8 @@ const InfrastructureDetails = () => { data: checks, dataKeys: ["avgMemoryUsage"], heading: "Memory usage", - strokeColor: theme.palette.primary.main, - gradientStartColor: theme.palette.primary.main, + strokeColor: theme.palette.accent.main, // CAIO_REVIEW + gradientStartColor: theme.palette.accent.main, // CAIO_REVIEW yLabel: "Memory usage", yDomain: [0, 1], yTick: , diff --git a/Client/src/Utils/Theme/constants.js b/Client/src/Utils/Theme/constants.js index 6e962dfef..7d9f8c8b2 100644 --- a/Client/src/Utils/Theme/constants.js +++ b/Client/src/Utils/Theme/constants.js @@ -1,4 +1,4 @@ -import { lighten } from "@mui/material/styles"; // CAIO_REVIEW +import { lighten, darken } from "@mui/material/styles"; // CAIO_REVIEW const typographyBase = 14; diff --git a/Client/src/Utils/Theme/globalTheme.js b/Client/src/Utils/Theme/globalTheme.js index e8ced6677..ff523ae9a 100644 --- a/Client/src/Utils/Theme/globalTheme.js +++ b/Client/src/Utils/Theme/globalTheme.js @@ -116,6 +116,9 @@ const baseTheme = (palette) => ({ backgroundColor: theme.palette.secondary.main, color: theme.palette.primary.contrastText, }, + "&.MuiButton-colorAccent:hover": { + boxShadow: `0 0 0 1px ${theme.palette.accent.main}`, // CAIO_REVIEW, this should really have a solid BG color + }, }, "&.MuiLoadingButton-loading": { "& .MuiLoadingButton-label": {