update compile button color
This commit is contained in:
		
							parent
							
								
									3cf7f10d34
								
							
						
					
					
						commit
						f53baf2536
					
				| @ -24,6 +24,9 @@ const theme = createMuiTheme({ | ||||
|     }, | ||||
|     secondary: { | ||||
|       main: '#DDDDDD' | ||||
|     }, | ||||
|     button: { | ||||
|       compile: '#e27136' | ||||
|     } | ||||
|   } | ||||
| }); | ||||
|  | ||||
| @ -15,15 +15,15 @@ import IconButton from '@material-ui/core/IconButton'; | ||||
| import Tooltip from '@material-ui/core/Tooltip'; | ||||
| import Button from '@material-ui/core/Button'; | ||||
| 
 | ||||
| import { faPlay } from "@fortawesome/free-solid-svg-icons"; | ||||
| import { faClipboardCheck } from "@fortawesome/free-solid-svg-icons"; | ||||
| import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | ||||
| 
 | ||||
| const styles = (theme) => ({ | ||||
|   compile: { | ||||
|     backgroundColor: theme.palette.primary.main, | ||||
|     backgroundColor: theme.palette.button.compile, | ||||
|     color: theme.palette.primary.contrastText, | ||||
|     '&:hover': { | ||||
|       backgroundColor: theme.palette.primary.main, | ||||
|       backgroundColor: theme.palette.button.compile, | ||||
|       color: theme.palette.primary.contrastText, | ||||
|     } | ||||
|   } | ||||
| @ -63,7 +63,7 @@ class SolutionCheck extends Component { | ||||
|             style={{ width: '40px', height: '40px', marginRight: '5px' }} | ||||
|             onClick={() => this.check()} | ||||
|           > | ||||
|             <FontAwesomeIcon icon={faPlay} size="xs" /> | ||||
|             <FontAwesomeIcon icon={faClipboardCheck} size="l" /> | ||||
|           </IconButton> | ||||
|         </Tooltip> | ||||
| 
 | ||||
|  | ||||
| @ -15,7 +15,7 @@ import IconButton from '@material-ui/core/IconButton'; | ||||
| import Tooltip from '@material-ui/core/Tooltip'; | ||||
| import TextField from '@material-ui/core/TextField'; | ||||
| 
 | ||||
| import { faCogs } from "@fortawesome/free-solid-svg-icons"; | ||||
| import { faClipboardCheck } from "@fortawesome/free-solid-svg-icons"; | ||||
| import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | ||||
| 
 | ||||
| const styles = (theme) => ({ | ||||
| @ -24,12 +24,12 @@ const styles = (theme) => ({ | ||||
|     color: '#fff', | ||||
|   }, | ||||
|   button: { | ||||
|     backgroundColor: theme.palette.primary.main, | ||||
|     backgroundColor: theme.palette.button.compile, | ||||
|     color: theme.palette.primary.contrastText, | ||||
|     width: '40px', | ||||
|     height: '40px', | ||||
|     '&:hover': { | ||||
|       backgroundColor: theme.palette.primary.main, | ||||
|       backgroundColor: theme.palette.button.compile, | ||||
|       color: theme.palette.primary.contrastText, | ||||
|     } | ||||
|   } | ||||
| @ -116,12 +116,12 @@ class Compile extends Component { | ||||
|               className={this.props.classes.button} | ||||
|               onClick={() => this.compile()} | ||||
|             > | ||||
|               <FontAwesomeIcon icon={faCogs} size="xs" /> | ||||
|               <FontAwesomeIcon icon={faClipboardCheck} size="l" /> | ||||
|             </IconButton> | ||||
|           </Tooltip> | ||||
|           : | ||||
|           <Button style={{ float: 'right', color: 'white' }} variant="contained" color="primary" onClick={() => this.compile()}> | ||||
|             <FontAwesomeIcon icon={faCogs} style={{ marginRight: '5px' }} /> Kompilieren | ||||
|             <FontAwesomeIcon icon={faClipboardCheck} style={{ marginRight: '5px' }} /> Kompilieren | ||||
|           </Button> | ||||
|         } | ||||
|         <Backdrop className={this.props.classes.backdrop} open={this.state.progress}> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user