Fix Light Mode Brand Accent Rendering

This commit is contained in:
copecone committed 2026-04-09 22:08:01 +09:00
1 parent 94ca7defb2
commit ae9e86461e
1 file changed
+2 -1
@@ -55,7 +55,7 @@ export class BrandAccent implements OnDestroy {
constructor(private ngZone: NgZone) { constructor(private ngZone: NgZone) {
if (typeof document !== 'undefined') { if (typeof document !== 'undefined') {
this.offscreenCanvas = new OffscreenCanvas(0, 0); this.offscreenCanvas = new OffscreenCanvas(0, 0);
this.offscreenCtx = this.offscreenCanvas.getContext('2d', { alpha: false, colorSpace: 'srgb' })!; this.offscreenCtx = this.offscreenCanvas.getContext('2d', { colorSpace: 'srgb' })!;
} }
effect(() => { effect(() => {
@@ -121,6 +121,7 @@ export class BrandAccent implements OnDestroy {
this.ctx.scale(dpr, dpr); this.ctx.scale(dpr, dpr);
this.updateAnimationInfo(); this.updateAnimationInfo();
this.update(performance.now());
this.draw(); this.draw();
} }