Hide stroke indicators in bitmap mode

This commit is contained in:
DD 2018-04-12 14:23:19 -04:00
parent 9c84537a42
commit c9c04745bc

View file

@ -310,34 +310,56 @@ const PaintEditorComponent = props => {
</div> </div>
{/* Second Row */} {/* Second Row */}
<div className={styles.row}> {isVector(props.format) ?
<InputGroup <div className={styles.row}>
className={classNames( <InputGroup
styles.row, className={classNames(
styles.modDashedBorder, styles.row,
styles.modLabeledIconHeight styles.modDashedBorder,
)} styles.modLabeledIconHeight
> )}
{/* fill */} >
<FillColorIndicatorComponent {/* fill */}
className={styles.modMarginRight} <FillColorIndicatorComponent
onUpdateSvg={props.onUpdateSvg} className={styles.modMarginRight}
/> onUpdateSvg={props.onUpdateSvg}
{/* stroke */} />
<StrokeColorIndicatorComponent {/* stroke */}
onUpdateSvg={props.onUpdateSvg} <StrokeColorIndicatorComponent
/> onUpdateSvg={props.onUpdateSvg}
{/* stroke width */} />
<StrokeWidthIndicatorComponent {/* stroke width */}
onUpdateSvg={props.onUpdateSvg} <StrokeWidthIndicatorComponent
/> onUpdateSvg={props.onUpdateSvg}
</InputGroup> />
<InputGroup className={styles.modModeTools}> </InputGroup>
<ModeToolsContainer <InputGroup className={styles.modModeTools}>
onUpdateSvg={props.onUpdateSvg} <ModeToolsContainer
/> onUpdateSvg={props.onUpdateSvg}
</InputGroup> />
</div> </InputGroup>
</div> :
<div className={styles.row}>
<InputGroup
className={classNames(
styles.row,
styles.modDashedBorder,
styles.modLabeledIconHeight
)}
>
{/* fill */}
<FillColorIndicatorComponent
className={styles.modMarginRight}
onUpdateSvg={props.onUpdateSvg}
/>
</InputGroup>
<InputGroup className={styles.modModeTools}>
<ModeToolsContainer
onUpdateSvg={props.onUpdateSvg}
/>
</InputGroup>
</div>
}
</div> </div>
) : null} ) : null}