iframe 안 CAD가 다크 색을 하드코딩하고 있어 앱의 화이트/블랙 토글과 따로 놀던 것을 고친다. 색 정의처는 앱과 같은 ui_template_theme.css 하나로 모은다. - openwebcad가 ui_template_theme.css를 직접 import — App.css의 하드코딩 색 88개를 var(--color-*)로 전량 치환, CAD 골격용 별칭 토큰만 새로 붙임 - src/theme.ts 신설: 동일 오리진 localStorage(frd_theme) + storage 이벤트로 부모 토글을 리로드 없이 추종(부모 코드 수정 없음), 시스템 폴백 유지 - 캔버스 배경·그리드는 토큰 경유, 저장된 도면 색은 라이트 모드에서 그릴 때만 휘도 보정(paintColor) — 저장 데이터는 불변 - 테마 변경 시 bumpSceneVersion()으로 정적 장면 캐시 비트맵 재생성 - Button/LayerManager의 tailwind 색 유틸 제거, index.html의 bg-* 고정 제거 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
19 lines
725 B
HTML
19 lines
725 B
HTML
<!doctype html>
|
|
<html lang="ko" class="m-0 p-0 overflow-hidden w-full h-full">
|
|
<head>
|
|
<meta charset="UTF-8"/>
|
|
<link rel="icon" type="image/svg+xml" href="./favicon.svg">
|
|
<link rel="icon" type="image/png" href="./favicon.png">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/>
|
|
<title>Aislo 2D Drawing</title>
|
|
</head>
|
|
<body class="m-0 p-0 overflow-hidden w-full h-full min-h-screen flex flex-row">
|
|
<div id="root" data-id="root"></div>
|
|
<canvas data-id="canvas" class="block cursor-none"></canvas>
|
|
<div class="export-pdf-wrapper">
|
|
<!-- Used to append the svg before exporting it to pdf -->
|
|
</div>
|
|
<script type="module" src="/src/main.tsx"></script>
|
|
</body>
|
|
</html>
|