From ad0c86f0843d32cfa576ddc953d90474c72a15aa Mon Sep 17 00:00:00 2001 From: Matt Ferraro Date: Thu, 13 Jun 2024 21:35:16 -0400 Subject: [PATCH 1/4] First pass on dark mode --- applications/web/index.html | 8 ++++++++ applications/web/src/components/AppBar.svelte | 6 +++--- applications/web/src/components/BottomBar.svelte | 6 ++++-- applications/web/src/components/FeatureHistory.svelte | 4 ++-- applications/web/src/components/MainDisplay.svelte | 6 +++--- applications/web/src/components/ToolBar.svelte | 2 +- applications/web/src/components/features/Extrusion.svelte | 2 +- applications/web/src/components/features/Plane.svelte | 4 ++-- applications/web/src/components/features/Point.svelte | 2 +- applications/web/src/components/features/Sketch.svelte | 4 ++-- applications/web/tailwind.config.cjs | 2 +- 11 files changed, 28 insertions(+), 18 deletions(-) diff --git a/applications/web/index.html b/applications/web/index.html index de5300db..42f2ba8f 100644 --- a/applications/web/index.html +++ b/applications/web/index.html @@ -14,6 +14,14 @@ CADmium + diff --git a/applications/web/src/components/AppBar.svelte b/applications/web/src/components/AppBar.svelte index 6f3123cf..5dfa4c0b 100644 --- a/applications/web/src/components/AppBar.svelte +++ b/applications/web/src/components/AppBar.svelte @@ -40,7 +40,7 @@ } -
+
@@ -113,10 +113,10 @@
- +
- +
diff --git a/applications/web/src/components/BottomBar.svelte b/applications/web/src/components/BottomBar.svelte index eceae76a..e95d5702 100644 --- a/applications/web/src/components/BottomBar.svelte +++ b/applications/web/src/components/BottomBar.svelte @@ -9,7 +9,7 @@ $: workbenches = $project.workbenches ?? [] -
+
{#each workbenches as wb, i (wb.name)} {#if wb.renaming} {:else} {/each} diff --git a/applications/web/src/components/controls/CubeGizmo/CubeGizmo.svelte b/applications/web/src/components/controls/CubeGizmo/CubeGizmo.svelte index 2e878789..e2c5574b 100644 --- a/applications/web/src/components/controls/CubeGizmo/CubeGizmo.svelte +++ b/applications/web/src/components/controls/CubeGizmo/CubeGizmo.svelte @@ -45,7 +45,7 @@ const origin = new Vector3(0, 0, 0) const textureSize = 64 - const gray = 0xdde6ed + const gray = 0xa1a8ad const black = 0x000000 const {autoRenderTask, renderer, camera, invalidate} = useThrelte()