have added the accent in order to make sure that the number choosen is identified.
This commit is contained in:
1 parent
ffcc32eaf2
commit
6983b3a5f5
1 file changed
+31
-7
@@ -397,16 +397,28 @@ const baseTheme = (palette) => ({
|
|||||||
|
|
||||||
// This code is added for clock in maintenance page
|
// This code is added for clock in maintenance page
|
||||||
// code starts from here.
|
// 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: {
|
MuiClockPicker: {
|
||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
root: ({ theme }) => ({
|
root: ({ theme }) => ({
|
||||||
backgroundColor: theme.palette.primary.main,
|
backgroundColor: theme.palette.secondary.main, // Outer container background
|
||||||
"& .MuiTypography-root": {
|
"& .MuiClock-root": {
|
||||||
color: theme.palette.primary.lowContrast,
|
color: theme.palette.primary.lowContrast,
|
||||||
},
|
},
|
||||||
"& .MuiClock-clock": {
|
"& .MuiClock-clock": {
|
||||||
backgroundColor: theme.palette.primary.dark,
|
backgroundColor: theme.palette.background.default, // Clock face background
|
||||||
borderColor: theme.palette.primary.lowContrast,
|
borderColor: theme.palette.secondary.lowContrast,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
@@ -415,9 +427,10 @@ const baseTheme = (palette) => ({
|
|||||||
MuiClockPointer: {
|
MuiClockPointer: {
|
||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
root: ({ theme }) => ({
|
root: ({ theme }) => ({
|
||||||
|
// Main pointer line color
|
||||||
backgroundColor: theme.palette.accent.main,
|
backgroundColor: theme.palette.accent.main,
|
||||||
"& .MuiClock-pointer": {
|
"& .MuiClockPointer-thumb": {
|
||||||
backgroundColor: theme.palette.accent.main,
|
backgroundColor: theme.palette.grey[500], // Use your desired grey
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
@@ -439,8 +452,19 @@ const baseTheme = (palette) => ({
|
|||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
root: ({ theme }) => ({
|
root: ({ theme }) => ({
|
||||||
backgroundColor: theme.palette.secondary.main,
|
backgroundColor: theme.palette.secondary.main,
|
||||||
|
// General text color
|
||||||
"& .MuiTypography-root": {
|
"& .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,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user