Fix snackbars in dark mode
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/** @type {import("@mui/material").ThemeOptions} */
|
||||
const themeOptions = {
|
||||
const baseThemeOptions = {
|
||||
components: {
|
||||
MuiListItemIcon: {
|
||||
styleOverrides: {
|
||||
@@ -22,35 +22,53 @@ const themeOptions = {
|
||||
|
||||
// https://github.com/binwiederhier/ntfy-android/blob/main/app/src/main/res/values/colors.xml
|
||||
|
||||
/** @type {import("@mui/material").ThemeOptions['palette']} */
|
||||
export const lightPalette = {
|
||||
mode: "light",
|
||||
primary: {
|
||||
main: "#338574",
|
||||
/** @type {import("@mui/material").ThemeOptions} */
|
||||
export const lightTheme = {
|
||||
...baseThemeOptions,
|
||||
components: {
|
||||
...baseThemeOptions.components,
|
||||
},
|
||||
secondary: {
|
||||
main: "#6cead0",
|
||||
},
|
||||
error: {
|
||||
main: "#c30000",
|
||||
palette: {
|
||||
mode: "light",
|
||||
primary: {
|
||||
main: "#338574",
|
||||
},
|
||||
secondary: {
|
||||
main: "#6cead0",
|
||||
},
|
||||
error: {
|
||||
main: "#c30000",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
/** @type {import("@mui/material").ThemeOptions['palette']} */
|
||||
export const darkPalette = {
|
||||
mode: "dark",
|
||||
background: {
|
||||
paper: "#1b2124",
|
||||
/** @type {import("@mui/material").ThemeOptions} */
|
||||
export const darkTheme = {
|
||||
...baseThemeOptions,
|
||||
components: {
|
||||
...baseThemeOptions.components,
|
||||
MuiSnackbarContent: {
|
||||
styleOverrides: {
|
||||
root: {
|
||||
color: "#000",
|
||||
backgroundColor: "#aeaeae",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
primary: {
|
||||
main: "#65b5a3",
|
||||
},
|
||||
secondary: {
|
||||
main: "#6cead0",
|
||||
},
|
||||
error: {
|
||||
main: "#fe4d2e",
|
||||
palette: {
|
||||
mode: "dark",
|
||||
background: {
|
||||
paper: "#1b2124",
|
||||
},
|
||||
primary: {
|
||||
main: "#65b5a3",
|
||||
},
|
||||
secondary: {
|
||||
main: "#6cead0",
|
||||
},
|
||||
error: {
|
||||
main: "#fe4d2e",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default themeOptions;
|
||||
|
||||
Reference in New Issue
Block a user