compile button
This commit is contained in:
parent
3655063eaa
commit
c47d98d2eb
@ -23,7 +23,7 @@ const styles = (theme) => ({
|
|||||||
zIndex: theme.zIndex.drawer + 1,
|
zIndex: theme.zIndex.drawer + 1,
|
||||||
color: '#fff',
|
color: '#fff',
|
||||||
},
|
},
|
||||||
button: {
|
iconButton: {
|
||||||
backgroundColor: theme.palette.button.compile,
|
backgroundColor: theme.palette.button.compile,
|
||||||
color: theme.palette.primary.contrastText,
|
color: theme.palette.primary.contrastText,
|
||||||
width: '40px',
|
width: '40px',
|
||||||
@ -32,6 +32,14 @@ const styles = (theme) => ({
|
|||||||
backgroundColor: theme.palette.button.compile,
|
backgroundColor: theme.palette.button.compile,
|
||||||
color: theme.palette.primary.contrastText,
|
color: theme.palette.primary.contrastText,
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
button: {
|
||||||
|
backgroundColor: theme.palette.button.compile,
|
||||||
|
color: theme.palette.primary.contrastText,
|
||||||
|
'&:hover': {
|
||||||
|
backgroundColor: theme.palette.button.compile,
|
||||||
|
color: theme.palette.primary.contrastText,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -113,14 +121,14 @@ class Compile extends Component {
|
|||||||
{this.props.iconButton ?
|
{this.props.iconButton ?
|
||||||
<Tooltip title='Projekt kompilieren' arrow style={{ marginRight: '5px' }}>
|
<Tooltip title='Projekt kompilieren' arrow style={{ marginRight: '5px' }}>
|
||||||
<IconButton
|
<IconButton
|
||||||
className={this.props.classes.button}
|
className={this.props.classes.iconButton}
|
||||||
onClick={() => this.compile()}
|
onClick={() => this.compile()}
|
||||||
>
|
>
|
||||||
<FontAwesomeIcon icon={faClipboardCheck} size="l" />
|
<FontAwesomeIcon icon={faClipboardCheck} size="l" />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
:
|
:
|
||||||
<Button style={{ float: 'right', color: 'white' }} variant="contained" color="primary" onClick={() => this.compile()}>
|
<Button style={{ float: 'right', color: 'white' }} variant="contained" className={this.props.classes.button} onClick={() => this.compile()}>
|
||||||
<FontAwesomeIcon icon={faClipboardCheck} style={{ marginRight: '5px' }} /> Kompilieren
|
<FontAwesomeIcon icon={faClipboardCheck} style={{ marginRight: '5px' }} /> Kompilieren
|
||||||
</Button>
|
</Button>
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user