|
|
|
@ -1,4 +1,9 @@ |
|
|
|
|
import { createMuiTheme, Theme } from '@material-ui/core/styles'; |
|
|
|
|
import { createTheme, Theme } from '@mui/material'; |
|
|
|
|
import { switchClasses } from '@mui/material/Switch'; |
|
|
|
|
import '@fontsource/roboto-condensed/300.css'; |
|
|
|
|
import '@fontsource/roboto-condensed/400.css'; |
|
|
|
|
import '@fontsource/roboto-condensed/700.css'; |
|
|
|
|
|
|
|
|
|
import { |
|
|
|
|
PANEL_BACKGROUND, |
|
|
|
|
TEXT, |
|
|
|
@ -7,9 +12,8 @@ import { |
|
|
|
|
DISABLED, |
|
|
|
|
BORDER_RADIUS, |
|
|
|
|
} from '../lib/consts/DEFAULT_THEME'; |
|
|
|
|
import 'typeface-roboto-condensed'; |
|
|
|
|
|
|
|
|
|
const theme: Theme = createMuiTheme({ |
|
|
|
|
const theme: Theme = createTheme({ |
|
|
|
|
palette: { |
|
|
|
|
primary: { |
|
|
|
|
main: PANEL_BACKGROUND, |
|
|
|
@ -22,37 +26,39 @@ const theme: Theme = createMuiTheme({ |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
typography: { |
|
|
|
|
fontFamily: 'Roboto Condensed', |
|
|
|
|
fontFamily: ['"Roboto Condensed"'].join(','), |
|
|
|
|
fontWeightRegular: 200, |
|
|
|
|
fontSize: 14, |
|
|
|
|
}, |
|
|
|
|
overrides: { |
|
|
|
|
components: { |
|
|
|
|
MuiSwitch: { |
|
|
|
|
switchBase: { |
|
|
|
|
// Controls default (unchecked) color for the thumb
|
|
|
|
|
color: TEXT, |
|
|
|
|
}, |
|
|
|
|
root: { |
|
|
|
|
padding: 8, |
|
|
|
|
}, |
|
|
|
|
track: { |
|
|
|
|
borderRadius: BORDER_RADIUS, |
|
|
|
|
border: 3, |
|
|
|
|
backgroundColor: PURPLE, |
|
|
|
|
opacity: 1, |
|
|
|
|
'$checked$checked + &': { |
|
|
|
|
// Controls checked color for the track
|
|
|
|
|
backgroundColor: BLUE, |
|
|
|
|
styleOverrides: { |
|
|
|
|
switchBase: { |
|
|
|
|
// Controls default (unchecked) color for the thumb
|
|
|
|
|
color: TEXT, |
|
|
|
|
}, |
|
|
|
|
root: { |
|
|
|
|
padding: 8, |
|
|
|
|
}, |
|
|
|
|
track: { |
|
|
|
|
borderRadius: BORDER_RADIUS, |
|
|
|
|
border: 3, |
|
|
|
|
backgroundColor: PURPLE, |
|
|
|
|
opacity: 1, |
|
|
|
|
[`.${switchClasses.checked}.${switchClasses.checked} + &`]: { |
|
|
|
|
// Controls checked color for the track
|
|
|
|
|
backgroundColor: BLUE, |
|
|
|
|
opacity: 1, |
|
|
|
|
}, |
|
|
|
|
[`.${switchClasses.disabled}.${switchClasses.disabled} + &`]: { |
|
|
|
|
backgroundColor: DISABLED, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
'$disabled$disabled + &': { |
|
|
|
|
backgroundColor: DISABLED, |
|
|
|
|
thumb: { |
|
|
|
|
color: TEXT, |
|
|
|
|
borderRadius: BORDER_RADIUS, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
thumb: { |
|
|
|
|
color: TEXT, |
|
|
|
|
borderRadius: BORDER_RADIUS, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|