From 6983b3a5f556667f3314f7a5daf85d480959d31a Mon Sep 17 00:00:00 2001 From: Owaise Imdad Date: Fri, 7 Mar 2025 01:10:06 +0530 Subject: [PATCH] have added the accent in order to make sure that the number choosen is identified. --- src/Utils/Theme/globalTheme.js | 38 +++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/src/Utils/Theme/globalTheme.js b/src/Utils/Theme/globalTheme.js index fa0dad9ef..4ffe8e377 100644 --- a/src/Utils/Theme/globalTheme.js +++ b/src/Utils/Theme/globalTheme.js @@ -397,16 +397,28 @@ const baseTheme = (palette) => ({ // This code is added for clock in maintenance page // code starts from here. + MuiClock: { + // Directly target the clock component + styleOverrides: { + root: ({ theme }) => ({ + backgroundColor: theme.palette.primary.main, // Alternative target + "& .MuiClock-clock": { + // Inner clock face + backgroundColor: theme.palette.secondary.main, + }, + }), + }, + }, MuiClockPicker: { styleOverrides: { root: ({ theme }) => ({ - backgroundColor: theme.palette.primary.main, - "& .MuiTypography-root": { + backgroundColor: theme.palette.secondary.main, // Outer container background + "& .MuiClock-root": { color: theme.palette.primary.lowContrast, }, "& .MuiClock-clock": { - backgroundColor: theme.palette.primary.dark, - borderColor: theme.palette.primary.lowContrast, + backgroundColor: theme.palette.background.default, // Clock face background + borderColor: theme.palette.secondary.lowContrast, }, }), }, @@ -415,9 +427,10 @@ const baseTheme = (palette) => ({ MuiClockPointer: { styleOverrides: { root: ({ theme }) => ({ + // Main pointer line color backgroundColor: theme.palette.accent.main, - "& .MuiClock-pointer": { - backgroundColor: theme.palette.accent.main, + "& .MuiClockPointer-thumb": { + backgroundColor: theme.palette.grey[500], // Use your desired grey }, }), }, @@ -439,8 +452,19 @@ const baseTheme = (palette) => ({ styleOverrides: { root: ({ theme }) => ({ backgroundColor: theme.palette.secondary.main, + // General text color "& .MuiTypography-root": { - color: theme.palette.secondary.contrastText, + color: theme.palette.secondary.darker, + }, + // Selected time (hour/minute) color + "& .Mui-selected": { + color: `${theme.palette.accent.main} !important`, // Use your accent color + }, + // AM/PM buttons color + "& .MuiButtonBase-root": { + "&.Mui-selected": { + backgroundColor: theme.palette.accent.main, + }, }, }), },