|
|
@ -4,6 +4,7 @@ import { |
|
|
|
TEXT, |
|
|
|
TEXT, |
|
|
|
PURPLE, |
|
|
|
PURPLE, |
|
|
|
BLUE, |
|
|
|
BLUE, |
|
|
|
|
|
|
|
DISABLED, |
|
|
|
} from '../lib/consts/DEFAULT_THEME'; |
|
|
|
} from '../lib/consts/DEFAULT_THEME'; |
|
|
|
|
|
|
|
|
|
|
|
const theme: Theme = createMuiTheme({ |
|
|
|
const theme: Theme = createMuiTheme({ |
|
|
@ -27,26 +28,28 @@ const theme: Theme = createMuiTheme({ |
|
|
|
MuiSwitch: { |
|
|
|
MuiSwitch: { |
|
|
|
switchBase: { |
|
|
|
switchBase: { |
|
|
|
// Controls default (unchecked) color for the thumb
|
|
|
|
// Controls default (unchecked) color for the thumb
|
|
|
|
color: '#fff', |
|
|
|
color: TEXT, |
|
|
|
}, |
|
|
|
}, |
|
|
|
root: { |
|
|
|
root: { |
|
|
|
padding: 8, |
|
|
|
padding: 8, |
|
|
|
}, |
|
|
|
}, |
|
|
|
track: { |
|
|
|
track: { |
|
|
|
borderRadius: 0, |
|
|
|
borderRadius: 3, |
|
|
|
border: 3, |
|
|
|
border: 3, |
|
|
|
backgroundColor: PURPLE, |
|
|
|
backgroundColor: PURPLE, |
|
|
|
|
|
|
|
opacity: 1, |
|
|
|
'$checked$checked + &': { |
|
|
|
'$checked$checked + &': { |
|
|
|
// Controls checked color for the track
|
|
|
|
// Controls checked color for the track
|
|
|
|
backgroundColor: BLUE, |
|
|
|
backgroundColor: BLUE, |
|
|
|
}, |
|
|
|
|
|
|
|
'&$checked + $track': { |
|
|
|
|
|
|
|
opacity: 1, |
|
|
|
opacity: 1, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
'$disabled$disabled + &': { |
|
|
|
|
|
|
|
backgroundColor: DISABLED, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
thumb: { |
|
|
|
thumb: { |
|
|
|
color: TEXT, |
|
|
|
color: TEXT, |
|
|
|
borderRadius: 0, |
|
|
|
borderRadius: 3, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|