Fix color

This commit is contained in:
Çetin
2025-01-08 15:11:51 +03:00
parent 3f5ce1977a
commit a0d2714c15

View File

@@ -31,6 +31,7 @@ export class RevenueStreamWidget {
initChart() { initChart() {
const documentStyle = getComputedStyle(document.documentElement); const documentStyle = getComputedStyle(document.documentElement);
const textColor = documentStyle.getPropertyValue('--text-color');
const borderColor = documentStyle.getPropertyValue('--surface-border'); const borderColor = documentStyle.getPropertyValue('--surface-border');
const textMutedColor = documentStyle.getPropertyValue('--text-color-secondary'); const textMutedColor = documentStyle.getPropertyValue('--text-color-secondary');
@@ -71,6 +72,13 @@ export class RevenueStreamWidget {
this.chartOptions = { this.chartOptions = {
maintainAspectRatio: false, maintainAspectRatio: false,
aspectRatio: 0.8, aspectRatio: 0.8,
plugins: {
legend: {
labels: {
color: textColor
}
}
},
scales: { scales: {
x: { x: {
stacked: true, stacked: true,