Skip to content

Commit

Permalink
add editor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsJacobsen committed Dec 20, 2023
1 parent 500a785 commit e0a31b7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { downloadImage, loadImage, useImage } from './utils'
import Progress from './components/Progress'
import { modelExists, downloadModel } from './adapters/cache'
import Modal from './components/Modal'
import * as m from './paraglide/messages'

interface EditorProps {
file: File
Expand Down Expand Up @@ -680,7 +681,7 @@ export default function Editor(props: EditorProps) {
</Button>
)}
<Slider
label="Brush Size"
label={m.bruch_size()}
min={10}
max={200}
value={brushSize}
Expand All @@ -695,18 +696,18 @@ export default function Editor(props: EditorProps) {
setTimeout(() => setSeparatorLeft(0), 300)
}}
>
Original
{m.original()}
</Button>
{!showOriginal && (
<Button onUp={onSuperResolution}>4x-upscaling</Button>
<Button onUp={onSuperResolution}>{m.upscale()}</Button>
)}

<Button
primary
icon={<DownloadIcon className="w-6 h-6" />}
onClick={download}
>
Download
{m.download()}
</Button>
</div>
</div>
Expand Down

0 comments on commit e0a31b7

Please sign in to comment.