night friendly candle colors
This commit is contained in:
parent
0d235602af
commit
9ec571389b
1 changed files with 6 additions and 6 deletions
|
|
@ -117,7 +117,7 @@ const CandleChart = forwardRef<CandleChartHandle, CandleChartProps>(
|
|||
// Get theme-specific colors
|
||||
const getChartColors = () => {
|
||||
const isDark = resolvedTheme === 'dark';
|
||||
|
||||
|
||||
if (isDark) {
|
||||
return {
|
||||
layout: {
|
||||
|
|
@ -187,12 +187,12 @@ const CandleChart = forwardRef<CandleChartHandle, CandleChartProps>(
|
|||
|
||||
const candlestickSeries = chart.addCandlestickSeries({
|
||||
upColor: '#ffffff',
|
||||
downColor: '#000000',
|
||||
downColor: '#444444',
|
||||
borderVisible: true,
|
||||
wickUpColor: '#000000',
|
||||
wickDownColor: '#000000',
|
||||
borderUpColor: '#000000',
|
||||
borderDownColor: '#000000',
|
||||
wickUpColor: '#444444',
|
||||
wickDownColor: '#444444',
|
||||
borderUpColor: '#444444',
|
||||
borderDownColor: '#444444',
|
||||
});
|
||||
|
||||
chartRef.current = chart;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue