mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 21:42:30 -05:00
Re-enable convert to bitmap button
This commit is contained in:
parent
82d2e30cae
commit
e6b151c41f
3 changed files with 21 additions and 19 deletions
|
@ -5,7 +5,7 @@
|
|||
<desc>Created with Sketch.</desc>
|
||||
<defs></defs>
|
||||
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||
<g id="bitmap" fill="#575E75">
|
||||
<g id="bitmap" fill="#FFFFFF">
|
||||
<path d="M4,3 L16,3 L16,4 L4,4 L4,3 Z M2,5 L3,5 L3,13 L2,13 L2,5 Z M17,5 L18,5 L18,13 L17,13 L17,5 Z M2,13 L18,13 L18,15 L2,15 L2,13 Z M4,12 L16,12 L16,13 L4,13 L4,12 Z M5,11 L8,11 L8,12 L5,12 L5,11 Z M6,10 L7,10 L7,11 L6,11 L6,10 Z M9,11 L16,11 L16,12 L9,12 L9,11 Z M10,10 L15,10 L15,11 L10,11 L10,10 Z M11,9 L14,9 L14,10 L11,10 L11,9 Z M12,8 L13,8 L13,9 L12,9 L12,8 Z M16,12 L17,12 L17,13 L16,13 L16,12 Z M3,15 L17,15 L17,16 L3,16 L3,15 Z M3,4 L4,4 L4,5 L3,5 L3,4 Z M16,4 L17,4 L17,5 L16,5 L16,4 Z M4,16 L16,16 L16,17 L4,17 L4,16 Z" id="Combined-Shape"></path>
|
||||
</g>
|
||||
</g>
|
||||
|
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
@ -179,13 +179,19 @@ $border-radius: 0.25rem;
|
|||
.bitmap-button {
|
||||
display: flex;
|
||||
border-radius: 5px;
|
||||
background-color: hsla(0, 0%, 0%, .25);
|
||||
background-color: $motion-primary;
|
||||
padding: calc(2 * $grid-unit);
|
||||
line-height: 1.5rem;
|
||||
font-size: calc(3 * $grid-unit);
|
||||
font-weight: bold;
|
||||
color: white;
|
||||
justify-content: center;
|
||||
opacity: .5;
|
||||
opacity: .75;
|
||||
}
|
||||
|
||||
.bitmap-button:active {
|
||||
background-color: $motion-primary;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.bitmap-button-icon {
|
||||
|
|
|
@ -15,7 +15,6 @@ import Button from '../button/button.jsx';
|
|||
import ButtonGroup from '../button-group/button-group.jsx';
|
||||
import BrushMode from '../../containers/brush-mode.jsx';
|
||||
import BufferedInputHOC from '../forms/buffered-input-hoc.jsx';
|
||||
import {ComingSoonTooltip} from '../coming-soon/coming-soon.jsx';
|
||||
import Dropdown from '../dropdown/dropdown.jsx';
|
||||
import EraserMode from '../../containers/eraser-mode.jsx';
|
||||
import FillColorIndicatorComponent from '../../containers/fill-color-indicator.jsx';
|
||||
|
@ -403,12 +402,10 @@ const PaintEditorComponent = props => {
|
|||
}
|
||||
</div>
|
||||
<div className={styles.canvasControls}>
|
||||
<ComingSoonTooltip
|
||||
className={styles.bitmapTooltip}
|
||||
place="top"
|
||||
tooltipId="bitmap-converter"
|
||||
<Button
|
||||
className={styles.bitmapButton}
|
||||
onClick={props.onZoomReset}
|
||||
>
|
||||
<div className={styles.bitmapButton}>
|
||||
<img
|
||||
className={styles.bitmapButtonIcon}
|
||||
draggable={false}
|
||||
|
@ -417,8 +414,7 @@ const PaintEditorComponent = props => {
|
|||
<span>
|
||||
{props.intl.formatMessage(messages.bitmap)}
|
||||
</span>
|
||||
</div>
|
||||
</ComingSoonTooltip>
|
||||
</Button>
|
||||
{/* Zoom controls */}
|
||||
<InputGroup className={styles.zoomControls}>
|
||||
<ButtonGroup>
|
||||
|
|
Loading…
Reference in a new issue