From 9abd570b87c77e3763ec874cd5c652cd15ddcff6 Mon Sep 17 00:00:00 2001 From: Teriuihi Date: Sun, 22 Jun 2025 23:15:06 +0200 Subject: [PATCH] Add support for darkmode --- .../components/frames/frames.component.html | 78 +++++---- .../components/frames/frames.component.scss | 13 +- .../particle/particle.component.html | 24 +-- .../particle/particle.component.scss | 11 ++ .../properties/properties.component.html | 162 +++++++++--------- .../properties/properties.component.scss | 14 ++ .../render-container.component.html | 18 +- .../render-container.component.scss | 11 +- .../app/particles/particles.component.scss | 98 ++++++++++- .../particles/services/renderer.service.ts | 18 +- 10 files changed, 300 insertions(+), 147 deletions(-) diff --git a/frontend/src/app/particles/components/frames/frames.component.html b/frontend/src/app/particles/components/frames/frames.component.html index 4feebde..29add5d 100644 --- a/frontend/src/app/particles/components/frames/frames.component.html +++ b/frontend/src/app/particles/components/frames/frames.component.html @@ -1,46 +1,48 @@ - - - Frames - - -
- - -
-

Particles in {{ frameId }}

-
-
+
+ + + Frames + + +
+ + +
+

Particles in {{ frameId }}

+
+
Particle {{ i + 1 }}: ({{ particle.x.toFixed(2) }}, {{ particle.y.toFixed(2) }} , {{ particle.z.toFixed(2) }}) - - + +
+
+ No particles in this frame. Click on the plane to add particles. +
+
+
+
-
- No particles in this frame. Click on the plane to add particles. -
-
- -
-
- - -
- + + +
+ +
-
- - + + +
diff --git a/frontend/src/app/particles/components/frames/frames.component.scss b/frontend/src/app/particles/components/frames/frames.component.scss index 0d9a8ae..ffb8834 100644 --- a/frontend/src/app/particles/components/frames/frames.component.scss +++ b/frontend/src/app/particles/components/frames/frames.component.scss @@ -34,7 +34,7 @@ .no-particles { padding: 20px; text-align: center; - color: #888; + color: var(--color-primairy); } .frame-actions { @@ -48,3 +48,14 @@ display: flex; justify-content: center; } + +.card-div { + mat-card { + background-color: var(--color-primary); + color: var(--font-color); + } +} + +span { + color: var(--font-color); +} diff --git a/frontend/src/app/particles/components/particle/particle.component.html b/frontend/src/app/particles/components/particle/particle.component.html index 84724b1..5f35d24 100644 --- a/frontend/src/app/particles/components/particle/particle.component.html +++ b/frontend/src/app/particles/components/particle/particle.component.html @@ -1,11 +1,13 @@ - - - Particle Color - - -
- - Selected Color: {{ selectedColor }} -
-
-
+
+ + + Particle Color + + +
+ + Selected Color: {{ selectedColor }} +
+
+
+
diff --git a/frontend/src/app/particles/components/particle/particle.component.scss b/frontend/src/app/particles/components/particle/particle.component.scss index f11c807..c394ef0 100644 --- a/frontend/src/app/particles/components/particle/particle.component.scss +++ b/frontend/src/app/particles/components/particle/particle.component.scss @@ -15,3 +15,14 @@ border-radius: 4px; cursor: pointer; } + +.card-div { + mat-card { + background-color: var(--color-primary); + color: var(--font-color); + } +} + +span { + color: var(--font-color); +} diff --git a/frontend/src/app/particles/components/properties/properties.component.html b/frontend/src/app/particles/components/properties/properties.component.html index d702302..3c392f4 100644 --- a/frontend/src/app/particles/components/properties/properties.component.html +++ b/frontend/src/app/particles/components/properties/properties.component.html @@ -1,91 +1,93 @@ - - - Particle Properties - - -
- - Particle Name - - -
+
+ + + Particle Properties + + +
+ + Particle Name + + +
-
- - Display Name - - -
+
+ + Display Name + + +
-
- - Particle Type - - {{ type }} - - -
+
+ + Particle Type + + {{ type }} + + +
-
- - Lore - - -
+
+ + Lore + + +
-
- - Display Item - - -
+
+ + Display Item + + +
-
- - Permission - - -
+
+ + Permission + + +
-
- - Package Permission - - -
+
+ + Package Permission + + +
-
- - Frame Delay - - -
+
+ + Frame Delay + + +
-
- - Repeat - - -
+
+ + Repeat + + +
-
- - Repeat Delay - - -
+
+ + Repeat Delay + + +
-
- - Random Offset - - -
+
+ + Random Offset + + +
-
- Stationary -
-
-
+
+ Stationary +
+ + +
diff --git a/frontend/src/app/particles/components/properties/properties.component.scss b/frontend/src/app/particles/components/properties/properties.component.scss index e69de29..2fb7996 100644 --- a/frontend/src/app/particles/components/properties/properties.component.scss +++ b/frontend/src/app/particles/components/properties/properties.component.scss @@ -0,0 +1,14 @@ +.form-row { + margin-bottom: 15px; +} + +.card-div { + mat-card { + background-color: var(--color-primary); + color: var(--font-color); + } +} + +span { + color: var(--font-color); +} diff --git a/frontend/src/app/particles/components/render-container/render-container.component.html b/frontend/src/app/particles/components/render-container/render-container.component.html index 58d0a53..32ec35c 100644 --- a/frontend/src/app/particles/components/render-container/render-container.component.html +++ b/frontend/src/app/particles/components/render-container/render-container.component.html @@ -1,14 +1,16 @@
- +
+ - + +