Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

foregroundColor & backgroundColor update with theme change #151

Open
imtase opened this issue Jun 22, 2024 · 0 comments
Open

foregroundColor & backgroundColor update with theme change #151

imtase opened this issue Jun 22, 2024 · 0 comments

Comments

@imtase
Copy link

imtase commented Jun 22, 2024

Using Angular 18 signal for dark/light theme management with computed in my component.

speedoForeground = computed(() => this._theme.currentTheme() === 'dark' ? 'rgb(192,241,144)' : 'rgb(164,213,119)');
speedoBackground = computed(() => this._theme.currentTheme() === 'dark' ? 'rgb(34,67,0)' : 'rgb(239,241,234)';

Despite setting changeDetection: ChangeDetectionStrategy.OnPush, the gauge colors don’t update automatically; the update only occurs when the gauge value changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant