fix banner and chart color
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
import { computed, nextTick, onMounted, ref, watch } from 'vue'
|
||||
import { useConfigStore } from '@/store/configStore'
|
||||
import { usePrice } from '@/utils/usePrice'
|
||||
import { getProjectFontFamily, getProjectPrimaryColor } from '@/utils/config'
|
||||
import { getBoursecuChartColor, getProjectFontFamily } from '@/utils/config'
|
||||
import {
|
||||
computeKatodMesVisualYBounds,
|
||||
prepareKatodMesChartPoints,
|
||||
@@ -101,6 +101,14 @@ const chartInnerClass = computed(() =>
|
||||
|
||||
const showMetalSelector = computed(() => props.layout === 'boursecu')
|
||||
|
||||
const chartColor = computed(() => {
|
||||
if (props.layout === 'boursecu') {
|
||||
return getBoursecuChartColor()
|
||||
}
|
||||
|
||||
return config.config?.color ?? '#0A1B37'
|
||||
})
|
||||
|
||||
const emit = defineEmits<{
|
||||
updateData: [timeline: string]
|
||||
'update:selectedMetal': [metal: ChartMetalType]
|
||||
@@ -295,7 +303,7 @@ const chartOptions = computed(() => {
|
||||
}),
|
||||
style: { fontFamily },
|
||||
},
|
||||
colors: [getProjectPrimaryColor() ?? config.config?.color ?? '#2178b5'],
|
||||
colors: [chartColor.value],
|
||||
fill: {
|
||||
type: 'gradient',
|
||||
gradient: {
|
||||
|
||||
Reference in New Issue
Block a user