1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-12 13:48:35 +02:00

Updates lifecycle trend chart colors for dark mode. (#10085)

This commit is contained in:
Thomas Heartman 2025-06-05 10:04:48 +02:00 committed by GitHub
parent 5da7d50291
commit 385f4ab1ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,6 +35,12 @@ type LifecycleInsights = {
const useChartColors = () => {
const theme = useTheme();
if (theme.mode === 'dark') {
return {
olderThanWeek: '#5A5CAC',
newThisWeek: '#698745',
};
}
return {
olderThanWeek: theme.palette.primary.light,
newThisWeek: theme.palette.success.border,