style refine

This commit is contained in:
Sanster
2022-04-04 21:51:33 +08:00
parent 855fd1f006
commit 10b35a3f0a
33 changed files with 263 additions and 686 deletions

View File

@@ -23,8 +23,7 @@ import SizeSelector from './SizeSelector'
import { downloadImage, loadImage, useImage } from '../../utils'
const TOOLBAR_SIZE = 200
const BRUSH_COLOR = 'rgba(255, 190, 0, 0.65)'
// const NO_COLOR = 'rgba(255,255,255,0)'
const BRUSH_COLOR = '#ffcc00bb'
interface EditorProps {
file: File
@@ -654,7 +653,7 @@ export default function Editor(props: EditorProps) {
/>
<Button
icon={<EyeIcon />}
style={showOriginal ? { backgroundColor: 'rgb(255, 190, 0)' } : {}}
className={showOriginal ? 'eyeicon-active' : ''}
onDown={ev => {
ev.preventDefault()
setShowOriginal(() => {