Skip to content
Snippets Groups Projects
Commit fc4745ed authored by Chris Beer's avatar Chris Beer
Browse files

Replace radio buttons with icons

parent 656160d3
Branches
Tags
No related merge requests found
...@@ -3,6 +3,8 @@ import FormControlLabel from '@material-ui/core/FormControlLabel'; ...@@ -3,6 +3,8 @@ import FormControlLabel from '@material-ui/core/FormControlLabel';
import Radio from '@material-ui/core/Radio'; import Radio from '@material-ui/core/Radio';
import RadioGroup from '@material-ui/core/RadioGroup'; import RadioGroup from '@material-ui/core/RadioGroup';
import Typography from '@material-ui/core/Typography'; import Typography from '@material-ui/core/Typography';
import CancelPresentationIcon from '@material-ui/icons/CancelPresentation';
import VideoLabelIcon from '@material-ui/icons/VideoLabel';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
/** /**
...@@ -42,19 +44,19 @@ export default class WindowThumbnailSettings extends Component { ...@@ -42,19 +44,19 @@ export default class WindowThumbnailSettings extends Component {
<RadioGroup aria-label="position" name="position" value={thumbnailNavigationPosition} onChange={this.handleChange} row> <RadioGroup aria-label="position" name="position" value={thumbnailNavigationPosition} onChange={this.handleChange} row>
<FormControlLabel <FormControlLabel
value="off" value="off"
control={<Radio color="primary" />} control={<Radio color="primary" icon={<CancelPresentationIcon />} checkedIcon={<CancelPresentationIcon />} />}
label="Off" label="Off"
labelPlacement="bottom" labelPlacement="bottom"
/> />
<FormControlLabel <FormControlLabel
value="bottom" value="bottom"
control={<Radio color="primary" />} control={<Radio color="primary" icon={<ThumbnailNavigationBottomIcon />} checkedIcon={<ThumbnailNavigationBottomIcon />} />}
label="Bottom" label="Bottom"
labelPlacement="bottom" labelPlacement="bottom"
/> />
<FormControlLabel <FormControlLabel
value="right" value="right"
control={<Radio color="primary" />} control={<Radio color="primary" icon={<ThumbnailNavigationRightIcon />} checkedIcon={<ThumbnailNavigationRightIcon />} />}
label="Right" label="Right"
labelPlacement="bottom" labelPlacement="bottom"
/> />
...@@ -64,6 +66,24 @@ export default class WindowThumbnailSettings extends Component { ...@@ -64,6 +66,24 @@ export default class WindowThumbnailSettings extends Component {
} }
} }
/**
* @private
*/
function ThumbnailNavigationBottomIcon(props) {
return (
<VideoLabelIcon />
);
}
/**
* @private
*/
function ThumbnailNavigationRightIcon(props) {
return (
<VideoLabelIcon style={{ transform: 'rotate(-90deg)' }} />
);
}
WindowThumbnailSettings.propTypes = { WindowThumbnailSettings.propTypes = {
windowId: PropTypes.string.isRequired, windowId: PropTypes.string.isRequired,
setWindowThumbnailPosition: PropTypes.func.isRequired, setWindowThumbnailPosition: PropTypes.func.isRequired,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment