Fix dark mode styles

This commit is contained in:
Ken Hibino
2021-01-15 12:09:55 -08:00
parent 3e72e613be
commit 3778dacca7
4 changed files with 24 additions and 12 deletions

View File

@@ -26,11 +26,17 @@ const useStyles = makeStyles((theme) => ({
},
formControl: {
margin: theme.spacing(1),
minWidth: 120,
display: "flex",
justifyContent: "space-between",
flexDirection: "row",
alignItems: "center",
},
selectEmpty: {
marginTop: theme.spacing(2),
},
select: {
width: "200px",
},
}));
function mapStateToProps(state: AppState) {
@@ -102,15 +108,14 @@ function SettingsView(props: PropsFromRedux) {
<Grid item xs={6}>
<Paper className={classes.paper} variant="outlined">
<FormControl variant="outlined" className={classes.formControl}>
<Typography color="textPrimary" gutterBottom>
Dark theme
</Typography>
<Typography color="textPrimary">Dark Theme</Typography>
<Select
labelId="theme-label"
id="theme-selected"
value={props.themePreference}
onChange={handleThemeChange}
label="theme preference"
className={classes.select}
>
<MenuItem value={ThemePreference.SystemDefault}>
System Default