style: add complete light mode support to Visualizador 3D

This commit is contained in:
2026-09-21 00:38:40 +00:00
parent ff9ce261a0
commit 20056f5ddc
2 changed files with 34 additions and 34 deletions
+2 -2
View File
@@ -81,7 +81,7 @@ export const ModelViewer3D: React.FC<ModelViewer3DProps> = ({
// 1. Scene
const scene = new THREE.Scene();
scene.background = new THREE.Color(0x0a0f1d);
scene.background = null; // Permite que o fundo da div (claro ou escuro) apareça
sceneRef.current = scene;
// 2. Cameras
@@ -538,7 +538,7 @@ export const ModelViewer3D: React.FC<ModelViewer3DProps> = ({
onPointerMove={handlePointerMove}
onPointerLeave={handlePointerLeave}
onDoubleClick={handleDoubleClick}
className="relative w-full h-full min-h-[600px] bg-slate-950 rounded-2xl overflow-hidden border border-slate-800 shadow-2xl select-none"
className="relative w-full h-full min-h-[600px] bg-slate-50 dark:bg-slate-950 rounded-2xl overflow-hidden border border-slate-200 dark:border-slate-800 shadow-xl dark:shadow-2xl select-none"
>
{/* Top Right: Interactive ViewCube */}
<div className="absolute top-4 right-4 z-20">