Stable
This commit is contained in:
@@ -45,7 +45,8 @@ import RenameDialog from './RenameDialog';
|
||||
import Slide, {SlideProps} from '@mui/material/Slide';
|
||||
import { createStyles, Theme } from '@mui/material/styles';
|
||||
import { WithStyles, withStyles} from '@mui/styles';
|
||||
|
||||
import { ReactComponent as DownloadIcon} from './svg/file_download_black_24dp.svg';
|
||||
import { ReactComponent as UploadIcon} from './svg/file_upload_black_24dp.svg';
|
||||
|
||||
|
||||
interface PresetDialogProps extends WithStyles<typeof styles> {
|
||||
@@ -72,6 +73,9 @@ interface PresetDialogState {
|
||||
|
||||
|
||||
const styles = (theme: Theme) => createStyles({
|
||||
listIcon: {
|
||||
width: 24, height: 24, opacity: 0.6, fill: theme.palette.text.primary
|
||||
},
|
||||
dialogAppBar: {
|
||||
position: 'relative',
|
||||
top: 0, left: 0
|
||||
@@ -408,9 +412,7 @@ const PresetDialog = withStyles(styles, { withTheme: true })(
|
||||
>
|
||||
<MenuItem onClick={() => { this.handleDownloadPreset(); }} >
|
||||
<ListItemIcon>
|
||||
<img src=
|
||||
{isDarkMode()? "img/file_download_white_24dp.svg":"img/file_download_black_24dp.svg"}
|
||||
style={{ width: 24, height: 24, opacity: 0.6 }} alt="" />
|
||||
<DownloadIcon className={classes.listIcon} />
|
||||
</ListItemIcon>
|
||||
<ListItemText>
|
||||
Download preset
|
||||
@@ -419,8 +421,7 @@ const PresetDialog = withStyles(styles, { withTheme: true })(
|
||||
</MenuItem>
|
||||
<MenuItem onClick={() => { this.handleUploadPreset() }}>
|
||||
<ListItemIcon>
|
||||
<img src={ isDarkMode()? "img/file_upload_white_24dp.svg": "img/file_upload_black_24dp.svg"}
|
||||
style={{ width: 24, height: 24, opacity: 0.6 }} alt="" />
|
||||
<UploadIcon className={classes.listIcon} />
|
||||
</ListItemIcon>
|
||||
<ListItemText>
|
||||
Upload preset
|
||||
|
||||
Reference in New Issue
Block a user