diff --git a/report-viewer/src/utils/ColorUtils.ts b/report-viewer/src/utils/ColorUtils.ts index 7625cd80a..c59da18c5 100644 --- a/report-viewer/src/utils/ColorUtils.ts +++ b/report-viewer/src/utils/ColorUtils.ts @@ -59,6 +59,11 @@ function generateColorsForInterval( return colors } +const graphRGB = { + red: 190, + green: 22, + blue: 34 +} const graphColors = { ticksAndFont: computed(() => { return store().uiState.useDarkMode ? '#ffffff' : '#000000' @@ -66,11 +71,11 @@ const graphColors = { gridLines: computed(() => { return store().uiState.useDarkMode ? 'rgba(256, 256, 256, 0.2)' : 'rgba(0, 0, 0, 0.2)' }), - contentFill: 'rgba(190, 22, 34, 0.5)', + contentFill: `rgba(${graphRGB.red}, ${graphRGB.green}, ${graphRGB.blue}, 0.5)`, contentBorder: 'rgb(127, 15, 24)', - pointFill: 'rgba(190, 22, 34, 1)', + pointFill: `rgba(${graphRGB.red}, ${graphRGB.green}, ${graphRGB.blue}, 1)`, contentFillAlpha(alpha: number) { - return `rgba(190, 22, 34, ${alpha})` + return `rgba(${graphRGB.red}, ${graphRGB.green}, ${graphRGB.blue}, ${alpha})` } } diff --git a/report-viewer/src/views/ClusterView.vue b/report-viewer/src/views/ClusterView.vue index 209fbc4fa..fda814c8e 100644 --- a/report-viewer/src/views/ClusterView.vue +++ b/report-viewer/src/views/ClusterView.vue @@ -51,7 +51,7 @@ import type { ComparisonListElement } from '@/model/ComparisonListElement' import { MetricType } from '@/model/MetricType' import { OverviewFactory } from '@/model/factories/OverviewFactory' import OptionsSelectorComponent from '@/components/optionsSelectors/OptionsSelectorComponent.vue' -import { ref } from 'vue' +import { ref, type Ref } from 'vue' const props = defineProps({ clusterIndex: {