@@ -734,13 +734,18 @@ export class SummaryViewProvider implements vscode.WebviewViewProvider {
734734 datasets: [{
735735 data: searchChartData.map(([_, time]) => time / 60),
736736 backgroundColor: [
737- 'rgba(74, 114, 176, 0.7)',
738- 'rgba(56, 97, 165, 0.7)',
739- 'rgba(37, 75, 145, 0.7)',
740- 'rgba(26, 59, 124, 0.7)',
741- 'rgba(15, 43, 103, 0.7)'
737+ 'rgba(255, 99, 132, 0.7)', // Red
738+ 'rgba(54, 162, 235, 0.7)', // Blue
739+ 'rgba(255, 206, 86, 0.7)', // Yellow
740+ 'rgba(75, 192, 192, 0.7)', // Teal
741+ 'rgba(153, 102, 255, 0.7)', // Purple
742+ 'rgba(255, 159, 64, 0.7)', // Orange
743+ 'rgba(199, 199, 199, 0.7)', // Gray
744+ 'rgba(83, 102, 255, 0.7)', // Indigo
745+ 'rgba(40, 167, 69, 0.7)', // Green
746+ 'rgba(220, 53, 69, 0.7)' // Dark Red
742747 ],
743- borderColor: 'var(--vscode-editor- background)' ,
748+ borderColor: chartColors. background,
744749 borderWidth: 1
745750 }]
746751 },
@@ -751,7 +756,29 @@ export class SummaryViewProvider implements vscode.WebviewViewProvider {
751756 legend: {
752757 position: 'right',
753758 labels: {
754- color: 'var(--chart-text-color)'
759+ color: chartColors.text,
760+ font: {
761+ size: 12,
762+ weight: '500'
763+ },
764+ padding: 20,
765+ usePointStyle: true
766+ }
767+ },
768+ tooltip: {
769+ backgroundColor: isDarkTheme ? 'rgba(0, 0, 0, 0.8)' : 'rgba(255, 255, 255, 0.8)',
770+ titleColor: chartColors.text,
771+ bodyColor: chartColors.text,
772+ borderColor: chartColors.grid,
773+ borderWidth: 1,
774+ padding: 12,
775+ callbacks: {
776+ label: function(context) {
777+ const minutes = context.raw;
778+ const hours = Math.floor(minutes / 60);
779+ const mins = Math.round(minutes % 60);
780+ return \`\${context.label}: \${hours}h \${mins}m\`;
781+ }
755782 }
756783 }
757784 }
0 commit comments