feat(ui): complete redesign of tools pages, prominent buttons below photo upload, and futuristic processing animations
This commit is contained in:
@@ -14,11 +14,14 @@ import {
|
||||
Maximize2
|
||||
} from 'lucide-react';
|
||||
import { MaskingConfig, resolveLocalised } from '@/types';
|
||||
import { ProcessingOverlay } from './ProcessingOverlay';
|
||||
|
||||
interface MaskCanvasEditorProps {
|
||||
imageUrl: string;
|
||||
config?: MaskingConfig;
|
||||
locale?: string;
|
||||
isProcessing?: boolean;
|
||||
toolName?: string;
|
||||
onMaskChange?: (hasMask: boolean) => void;
|
||||
onExportReady?: (getMaskBlob: () => Promise<Blob | null>) => void;
|
||||
}
|
||||
@@ -27,6 +30,8 @@ export function MaskCanvasEditor({
|
||||
imageUrl,
|
||||
config,
|
||||
locale = 'en',
|
||||
isProcessing = false,
|
||||
toolName,
|
||||
onMaskChange,
|
||||
onExportReady,
|
||||
}: MaskCanvasEditorProps) {
|
||||
@@ -520,6 +525,9 @@ export function MaskCanvasEditor({
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
|
||||
{/* Laser Scanning Processing Animation Overlay */}
|
||||
{isProcessing && <ProcessingOverlay toolName={toolName || 'Inpainting Model'} />}
|
||||
</div>
|
||||
|
||||
{/* Canvas Helper Hint */}
|
||||
|
||||
Reference in New Issue
Block a user