Merge pull request #406 from getmaxun/error-color
feat: handle `color=error` in all modes
This commit is contained in:
@@ -86,6 +86,12 @@ const darkTheme = createTheme({
|
||||
main: "#ff00c3",
|
||||
contrastText: "#ffffff",
|
||||
},
|
||||
error: {
|
||||
main: '#f44336',
|
||||
light: '#e57373',
|
||||
dark: '#d32f2f',
|
||||
contrastText: '#ffffff',
|
||||
},
|
||||
background: {
|
||||
default: '#121212',
|
||||
paper: '#1e1e1e',
|
||||
@@ -124,6 +130,14 @@ const darkTheme = createTheme({
|
||||
backgroundColor: 'rgba(255, 0, 195, 0.08)',
|
||||
borderColor: '#ff66d9',
|
||||
},
|
||||
'&.MuiButton-outlinedError': {
|
||||
borderColor: '#f44336',
|
||||
color: '#f44336',
|
||||
"&:hover": {
|
||||
backgroundColor: 'rgba(244, 67, 54, 0.08)',
|
||||
borderColor: '#d32f2f',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -144,6 +158,12 @@ const darkTheme = createTheme({
|
||||
"&:hover": {
|
||||
backgroundColor: 'rgba(255, 0, 195, 0.08)',
|
||||
},
|
||||
'&.MuiIconButton-colorError': {
|
||||
color: '#f44336',
|
||||
"&:hover": {
|
||||
backgroundColor: 'rgba(244, 67, 54, 0.08)',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -218,7 +238,7 @@ const darkTheme = createTheme({
|
||||
});
|
||||
|
||||
const ThemeModeContext = createContext({
|
||||
toggleTheme: () => {},
|
||||
toggleTheme: () => { },
|
||||
darkMode: false,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user