Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. const style = {
  2. play: {
  3. margin: 5,
  4. padding: 0,
  5. colorInherit: 'linear-gradient(45deg, #38e438 30%, #58e458 90%)',
  6. },
  7. play_disabled: {
  8. margin: 5,
  9. padding: 0,
  10. background: '#222',
  11. },
  12. clear: {
  13. margin: 5,
  14. marginRight: 10,
  15. padding: 0,
  16. background: 'linear-gradient(45deg, #FE3B3B 30%, #FF3B3B 90%)',
  17. },
  18. clear_disabled: {
  19. margin: 5,
  20. marginRight: 10,
  21. padding: 0,
  22. background: '#222',
  23. },
  24. default: {
  25. margin: 2,
  26. padding: 0,
  27. color: '#fff',
  28. },
  29. disabled: {
  30. margin: 2,
  31. padding: 0,
  32. color: '#777',
  33. },
  34. };
  35. const theme = createMuiTheme({
  36. palette: {
  37. primary: {
  38. main: "#777",
  39. }
  40. }
  41. });
  42. <MuiThemeProvider theme={theme}>
  43. <Tooltip title="Render" placement="bottom-start">
  44. <Button
  45. id="play-btn"
  46. variant="outlined"
  47. size="small"
  48. onClick={this.handleRender}
  49. color="primary"
  50. className="header-btn"
  51. style={this.props.layoutType === layoutTypes.REFERENCE ? style.play_disabled : style.play}
  52. disabled={this.props.layoutType === layoutTypes.REFERENCE}>
  53. <Icon className="material-icons" style={{ color: '#777' }}>play_arrow</Icon>
  54. </Button>
  55. </Tooltip>
  56. <Tooltip title="Stop" placement="bottom-start">
  57. <Button
  58. id="stop-btn"
  59. variant="outlined"
  60. size="small"
  61. onClick={this.clear}
  62. color="primary"
  63. className="header-btn"
  64. style={this.props.layoutType === layoutTypes.REFERENCE ? style.clear_disabled : style.clear}
  65. disabled={this.props.layoutType === layoutTypes.REFERENCE}>
  66. <Icon className="material-icons" style={{ color: '#777' }}>stop</Icon>
  67. </Button>
  68. </Tooltip>
  69. </MuiThemeProvider>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement