mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-13 19:41:22 +00:00
Improve structure
This commit is contained in:
parent
69ff35b776
commit
22326411a0
@ -1,7 +1,7 @@
|
|||||||
import { createTheme } from '@mui/material/styles';
|
import { createTheme, ThemeOptions } from '@mui/material/styles';
|
||||||
import { commonThemeOptions } from './theme-common';
|
import { commonThemeOptions } from './theme-common';
|
||||||
|
|
||||||
const darkTheme = createTheme({
|
const darkThemeOptions: ThemeOptions = {
|
||||||
...commonThemeOptions,
|
...commonThemeOptions,
|
||||||
palette: {
|
palette: {
|
||||||
mode: 'dark',
|
mode: 'dark',
|
||||||
@ -37,14 +37,6 @@ const darkTheme = createTheme({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
MuiIcon: {
|
|
||||||
defaultProps: {
|
|
||||||
style: {
|
|
||||||
color: 'rgb(255, 255, 255)',
|
|
||||||
opacity: 0.5,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
MuiCssBaseline: {
|
MuiCssBaseline: {
|
||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
':root': {
|
':root': {
|
||||||
@ -76,7 +68,17 @@ const darkTheme = createTheme({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
MuiIcon: {
|
||||||
|
defaultProps: {
|
||||||
|
style: {
|
||||||
|
color: 'rgb(255, 255, 255)',
|
||||||
|
opacity: 0.5,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
};
|
||||||
|
|
||||||
|
const darkTheme = createTheme(darkThemeOptions);
|
||||||
|
|
||||||
export { darkTheme };
|
export { darkTheme };
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { createTheme } from '@mui/material/styles';
|
import { createTheme, ThemeOptions } from '@mui/material/styles';
|
||||||
import { commonThemeOptions } from './theme-common';
|
import { commonThemeOptions } from './theme-common';
|
||||||
|
|
||||||
const lightTheme = createTheme({
|
const lightThemeOptions: ThemeOptions = {
|
||||||
...commonThemeOptions,
|
...commonThemeOptions,
|
||||||
palette: {
|
palette: {
|
||||||
mode: 'light',
|
mode: 'light',
|
||||||
@ -38,14 +38,6 @@ const lightTheme = createTheme({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
MuiIcon: {
|
|
||||||
defaultProps: {
|
|
||||||
style: {
|
|
||||||
color: 'rgba(0, 0, 0, 1)',
|
|
||||||
opacity: 0.5,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
MuiCssBaseline: {
|
MuiCssBaseline: {
|
||||||
styleOverrides: {
|
styleOverrides: {
|
||||||
':root': {
|
':root': {
|
||||||
@ -77,7 +69,17 @@ const lightTheme = createTheme({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
MuiIcon: {
|
||||||
|
defaultProps: {
|
||||||
|
style: {
|
||||||
|
color: 'rgba(0, 0, 0, 1)',
|
||||||
|
opacity: 0.5,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
};
|
||||||
|
|
||||||
|
const lightTheme = createTheme(lightThemeOptions);
|
||||||
|
|
||||||
export { lightTheme };
|
export { lightTheme };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user