@@ -80,7 +80,7 @@ export class CircularHeatmapComponent implements OnInit, OnDestroy {
8080 this . themeService . setTheme ( savedTheme ) ; // sets .light-theme or .dark-theme
8181 requestAnimationFrame ( ( ) => {
8282 // Now the DOM has the correct class and CSS vars are live
83- console . log ( ' Initial theme:' , this . theme ) ;
83+ console . log ( ` ${ perfNow ( ) } s: ngOnInit: Initial theme:` , this . theme ) ;
8484 const css = getComputedStyle ( document . body ) ;
8585 this . theme_colors = {
8686 background : css . getPropertyValue ( '--heatmap-background' ) . trim ( ) ,
@@ -89,6 +89,10 @@ export class CircularHeatmapComponent implements OnInit, OnDestroy {
8989 cursor : css . getPropertyValue ( '--heatmap-cursor-hover' ) . trim ( ) ,
9090 stroke : css . getPropertyValue ( '--heatmap-stroke' ) . trim ( ) ,
9191 } ;
92+ console . debug ( `${ perfNow ( ) } s: ngOnInit: Heatmap theme colors:` , this . theme_colors ) ;
93+ if ( ! this . theme_colors [ 'background' ] || ! this . theme_colors [ 'filled' ] ) {
94+ console . debug ( css ) ;
95+ }
9296
9397 console . log ( `${ perfNow ( ) } : Heat: Loading yamls...` ) ;
9498 // Ensure that Levels and Teams load before MaturityData
@@ -137,7 +141,7 @@ export class CircularHeatmapComponent implements OnInit, OnDestroy {
137141 } ) ;
138142 // Reactively handle theme changes (if user toggles later)
139143 this . themeService . theme$ . pipe ( takeUntil ( this . destroy$ ) ) . subscribe ( ( theme : string ) => {
140- console . log ( ' Theme changed to:' , theme ) ;
144+ console . log ( ` ${ perfNow ( ) } s: themeService.pipe: Theme changed to:` , theme ) ;
141145 const css = getComputedStyle ( document . body ) ;
142146 this . theme_colors = {
143147 background : css . getPropertyValue ( '--heatmap-background' ) . trim ( ) ,
@@ -146,6 +150,7 @@ export class CircularHeatmapComponent implements OnInit, OnDestroy {
146150 cursor : css . getPropertyValue ( '--heatmap-cursor-hover' ) . trim ( ) ,
147151 stroke : css . getPropertyValue ( '--heatmap-stroke' ) . trim ( ) ,
148152 } ;
153+ console . debug ( `${ perfNow ( ) } s: themeService.pipe: Heatmap theme colors:` , this . theme_colors ) ;
149154
150155 // Repaint segments with new theme
151156 this . reColorHeatmap ( ) ;
0 commit comments