diff --git a/B07_DesignDetail/openwebcad/src/components/Button.tsx b/B07_DesignDetail/openwebcad/src/components/Button.tsx index 0b139b7f..b1f3f087 100644 --- a/B07_DesignDetail/openwebcad/src/components/Button.tsx +++ b/B07_DesignDetail/openwebcad/src/components/Button.tsx @@ -37,11 +37,9 @@ export const Button: FC = ({ left = null, right = null, }) => { + // 색은 App.css의 테마 토큰이 data-type/data-active로 준다 — 여기서는 배치만. const classParts = [ - 'font-semibold py-4 h-10 flex flex-row justify-start w-full items-center hover:bg-blue-500 hover:text-white hover:border-transparent', - type === 'regular' ? 'bg-gray-950 text-blue-500' : '', - type === 'transparent' ? 'bg-transparent text-blue-500' : '', - active ? 'bg-blue-500 text-white border-transparent hover:bg-blue-400' : '', + 'font-semibold py-4 h-10 flex flex-row justify-start w-full items-center', size === 'regular' ? 'pl-2 pr-2 gap-2' : '', size === 'small' ? 'pl-2 pr-2 gap-0' : '', className || '', @@ -68,7 +66,7 @@ export const Button: FC = ({ (iconName && ( ))}
{left}
diff --git a/B07_DesignDetail/openwebcad/src/components/Icon/custom-icons/measurement.svg b/B07_DesignDetail/openwebcad/src/components/Icon/custom-icons/measurement.svg new file mode 100644 index 00000000..7f97d15d --- /dev/null +++ b/B07_DesignDetail/openwebcad/src/components/Icon/custom-icons/measurement.svg @@ -0,0 +1,4 @@ + + + + diff --git a/B07_DesignDetail/openwebcad/src/components/Icon/custom-icons/scale.svg b/B07_DesignDetail/openwebcad/src/components/Icon/custom-icons/scale.svg new file mode 100644 index 00000000..df150ed8 --- /dev/null +++ b/B07_DesignDetail/openwebcad/src/components/Icon/custom-icons/scale.svg @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/B07_DesignDetail/openwebcad/src/components/LayerManager.tsx b/B07_DesignDetail/openwebcad/src/components/LayerManager.tsx index 2891d5f6..c0962b7b 100644 --- a/B07_DesignDetail/openwebcad/src/components/LayerManager.tsx +++ b/B07_DesignDetail/openwebcad/src/components/LayerManager.tsx @@ -93,7 +93,7 @@ export const LayerManager: FC = ({ title="Set this layer as active" active={activeLayerId === layer.id} onClick={(evt) => handleLayerClick(evt, layer.id)} - className="data-[active=true]:text-white flex-grow" + className="flex-grow" left={ <>