Chore: Migrate usage of v1 themes to v2 (#57617)

This commit is contained in:
kay delaney
2022-10-26 13:28:12 +01:00
committed by GitHub
parent 77437f2c89
commit 05ceff5188
31 changed files with 189 additions and 193 deletions

View File

@@ -64,8 +64,8 @@ export class ThresholdFormCtrl {
onThresholdTypeChange(index: number) {
// Because of the ng-model binding, threshold's color mode is already set here
if (this.panel.thresholds[index].colorMode === 'custom') {
this.panel.thresholds[index].fillColor = tinycolor(config.theme.palette.blue85).setAlpha(0.2).toRgbString();
this.panel.thresholds[index].lineColor = tinycolor(config.theme.palette.blue77).setAlpha(0.6).toRgbString();
this.panel.thresholds[index].fillColor = tinycolor(config.theme2.v1.palette.blue85).setAlpha(0.2).toRgbString();
this.panel.thresholds[index].lineColor = tinycolor(config.theme2.v1.palette.blue77).setAlpha(0.6).toRgbString();
}
this.panelCtrl.render();
}