From b4fcbed7817f04cd5f8830be65a7da5acecd0ae2 Mon Sep 17 00:00:00 2001 From: akastijn Date: Sat, 27 Dec 2025 21:28:16 +0100 Subject: [PATCH] remove redundant theme parameter. --- .../src/app/pages/particles/services/renderer.service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/pages/particles/services/renderer.service.ts b/frontend/src/app/pages/particles/services/renderer.service.ts index 99224c3..abf8eca 100644 --- a/frontend/src/app/pages/particles/services/renderer.service.ts +++ b/frontend/src/app/pages/particles/services/renderer.service.ts @@ -21,7 +21,7 @@ export class RendererService { this.themeService.theme$.subscribe(theme => { this.currentTheme = theme; if (this.scene) { - this.setBackgroundColor(theme); + this.setBackgroundColor(); } }) } @@ -32,7 +32,7 @@ export class RendererService { initializeRenderer(container: ElementRef): void { // Create scene this.scene = new THREE.Scene(); - this.setBackgroundColor(this.currentTheme); + this.setBackgroundColor(); // Get container dimensions const containerWidth = container.nativeElement.clientWidth; @@ -66,7 +66,7 @@ export class RendererService { this.addLights(); } - private setBackgroundColor(theme: THEME_MODE) { + private setBackgroundColor() { this.scene.background = new THREE.Color(this.currentTheme === THEME_MODE.DARK ? 0x242526 : 0xFBFBFE); }