mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 21:42:30 -05:00
Hide stroke indicators in bitmap mode
This commit is contained in:
parent
9c84537a42
commit
c9c04745bc
1 changed files with 50 additions and 28 deletions
|
@ -310,34 +310,56 @@ const PaintEditorComponent = props => {
|
|||
</div>
|
||||
|
||||
{/* Second Row */}
|
||||
<div className={styles.row}>
|
||||
<InputGroup
|
||||
className={classNames(
|
||||
styles.row,
|
||||
styles.modDashedBorder,
|
||||
styles.modLabeledIconHeight
|
||||
)}
|
||||
>
|
||||
{/* fill */}
|
||||
<FillColorIndicatorComponent
|
||||
className={styles.modMarginRight}
|
||||
onUpdateSvg={props.onUpdateSvg}
|
||||
/>
|
||||
{/* stroke */}
|
||||
<StrokeColorIndicatorComponent
|
||||
onUpdateSvg={props.onUpdateSvg}
|
||||
/>
|
||||
{/* stroke width */}
|
||||
<StrokeWidthIndicatorComponent
|
||||
onUpdateSvg={props.onUpdateSvg}
|
||||
/>
|
||||
</InputGroup>
|
||||
<InputGroup className={styles.modModeTools}>
|
||||
<ModeToolsContainer
|
||||
onUpdateSvg={props.onUpdateSvg}
|
||||
/>
|
||||
</InputGroup>
|
||||
</div>
|
||||
{isVector(props.format) ?
|
||||
<div className={styles.row}>
|
||||
<InputGroup
|
||||
className={classNames(
|
||||
styles.row,
|
||||
styles.modDashedBorder,
|
||||
styles.modLabeledIconHeight
|
||||
)}
|
||||
>
|
||||
{/* fill */}
|
||||
<FillColorIndicatorComponent
|
||||
className={styles.modMarginRight}
|
||||
onUpdateSvg={props.onUpdateSvg}
|
||||
/>
|
||||
{/* stroke */}
|
||||
<StrokeColorIndicatorComponent
|
||||
onUpdateSvg={props.onUpdateSvg}
|
||||
/>
|
||||
{/* stroke width */}
|
||||
<StrokeWidthIndicatorComponent
|
||||
onUpdateSvg={props.onUpdateSvg}
|
||||
/>
|
||||
</InputGroup>
|
||||
<InputGroup className={styles.modModeTools}>
|
||||
<ModeToolsContainer
|
||||
onUpdateSvg={props.onUpdateSvg}
|
||||
/>
|
||||
</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>
|
||||
) : null}
|
||||
|
||||
|
|
Loading…
Reference in a new issue