night friendly candle colors

This commit is contained in:
Marko Djordjevic 2026-02-12 23:38:11 +01:00
parent 0d235602af
commit 9ec571389b

View file

@ -117,7 +117,7 @@ const CandleChart = forwardRef<CandleChartHandle, CandleChartProps>(
// Get theme-specific colors // Get theme-specific colors
const getChartColors = () => { const getChartColors = () => {
const isDark = resolvedTheme === 'dark'; const isDark = resolvedTheme === 'dark';
if (isDark) { if (isDark) {
return { return {
layout: { layout: {
@ -187,12 +187,12 @@ const CandleChart = forwardRef<CandleChartHandle, CandleChartProps>(
const candlestickSeries = chart.addCandlestickSeries({ const candlestickSeries = chart.addCandlestickSeries({
upColor: '#ffffff', upColor: '#ffffff',
downColor: '#000000', downColor: '#444444',
borderVisible: true, borderVisible: true,
wickUpColor: '#000000', wickUpColor: '#444444',
wickDownColor: '#000000', wickDownColor: '#444444',
borderUpColor: '#000000', borderUpColor: '#444444',
borderDownColor: '#000000', borderDownColor: '#444444',
}); });
chartRef.current = chart; chartRef.current = chart;