diff --git a/src/components/charts/CandleChart.vue b/src/components/charts/CandleChart.vue index cfb0dcbb..1b1bdb68 100644 --- a/src/components/charts/CandleChart.vue +++ b/src/components/charts/CandleChart.vue @@ -86,16 +86,15 @@ const props = defineProps({ type: Object as () => ChartSliderPosition, default: () => undefined, }, - colorPreference: { required: false, type: String, default: 'greenUp' }, + colorUp: { required: false, type: String, default: '#12bb7b' }, + colorDown: { required: false, type: String, default: '#ef5350' }, }); // Candle Colors -const colorProfit = props.colorPreference === 'greenUp' ? '#26A69A' : '#EF5350'; -const colorLoss = props.colorPreference === 'greenUp' ? '#EF5350' : '#26A69A'; -const upColor = colorProfit; -const upBorderColor = colorProfit; -const downColor = colorLoss; -const downBorderColor = colorLoss; +const upColor = props.colorUp; +const upBorderColor = props.colorUp; +const downColor = props.colorDown; +const downBorderColor = props.colorDown; // Buy / Sell Signal Colors const buySignalColor = '#00ff26'; diff --git a/src/components/charts/CandleChartContainer.vue b/src/components/charts/CandleChartContainer.vue index 985fea2f..2cdbb9b0 100644 --- a/src/components/charts/CandleChartContainer.vue +++ b/src/components/charts/CandleChartContainer.vue @@ -65,7 +65,8 @@ :use-u-t-c="settingsStore.timezone === 'UTC'" :theme="settingsStore.chartTheme" :slider-position="sliderPosition" - :color-preference="colorStore.colorPreference" + :color-down="colorStore.colorDown" + :color-up="colorStore.colorUp" >