From 79dd781386ae8c96f5f9993b86a7ab5044f7b0ef Mon Sep 17 00:00:00 2001 From: Peter Carl Pardo Date: Wed, 11 Dec 2024 00:03:36 +0800 Subject: [PATCH 1/3] fix: update red palette colors --- Client/src/Utils/Theme/constants.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Client/src/Utils/Theme/constants.js b/Client/src/Utils/Theme/constants.js index df9b5da93..422648028 100644 --- a/Client/src/Utils/Theme/constants.js +++ b/Client/src/Utils/Theme/constants.js @@ -51,7 +51,8 @@ const paletteColors = { red50: "#F9ECED", red100: "#FBD1D1", red200: "#F04438", - red300: "#D32F2F", + red300: "#EBA8A9", + red400: "#D32F2F", red700: "#542426", red800: "#301A1F", orange50: "#FEF8EA", @@ -109,12 +110,12 @@ const semanticColors = { }, error: { main: { - light: paletteColors.red300, - dark: paletteColors.red300, + light: paletteColors.red400, + dark: paletteColors.red400, }, contrastText: { - light: paletteColors.gray50, - dark: paletteColors.gray50, + light: paletteColors.red300, + dark: paletteColors.red300, }, light: { light: paletteColors.red100, From c3298147b6e40afb69f4f7a4129da5dfbc53926a Mon Sep 17 00:00:00 2001 From: Peter Carl Pardo Date: Thu, 12 Dec 2024 22:39:42 +0800 Subject: [PATCH 2/3] Revert "fix: update red palette colors" This reverts commit 79dd781386ae8c96f5f9993b86a7ab5044f7b0ef. --- Client/src/Utils/Theme/constants.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Client/src/Utils/Theme/constants.js b/Client/src/Utils/Theme/constants.js index 422648028..df9b5da93 100644 --- a/Client/src/Utils/Theme/constants.js +++ b/Client/src/Utils/Theme/constants.js @@ -51,8 +51,7 @@ const paletteColors = { red50: "#F9ECED", red100: "#FBD1D1", red200: "#F04438", - red300: "#EBA8A9", - red400: "#D32F2F", + red300: "#D32F2F", red700: "#542426", red800: "#301A1F", orange50: "#FEF8EA", @@ -110,13 +109,13 @@ const semanticColors = { }, error: { main: { - light: paletteColors.red400, - dark: paletteColors.red400, - }, - contrastText: { light: paletteColors.red300, dark: paletteColors.red300, }, + contrastText: { + light: paletteColors.gray50, + dark: paletteColors.gray50, + }, light: { light: paletteColors.red100, dark: paletteColors.red700, From 1a856ed463723292d908069c0dbe9787c9fb77d1 Mon Sep 17 00:00:00 2001 From: Peter Carl Pardo Date: Fri, 13 Dec 2024 00:47:09 +0800 Subject: [PATCH 3/3] fix: Update chart color for "Poor" category --- Client/src/Pages/Monitors/Details/Charts/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/src/Pages/Monitors/Details/Charts/index.jsx b/Client/src/Pages/Monitors/Details/Charts/index.jsx index fc01fbfc9..7c5adc9e2 100644 --- a/Client/src/Pages/Monitors/Details/Charts/index.jsx +++ b/Client/src/Pages/Monitors/Details/Charts/index.jsx @@ -262,7 +262,7 @@ const ResponseGaugeChart = ({ data }) => { } : { category: "Poor", - main: theme.palette.error.contrastText, + main: theme.palette.error.light, bg: theme.palette.error.dark, };