From bba5967b0a870125d559ebd668730375686c72cb Mon Sep 17 00:00:00 2001 From: tjs Date: Thu, 17 Aug 2023 16:36:25 -0400 Subject: [PATCH] set bg color in trading view widget --- components/trade/TradingViewChart.tsx | 6 +++--- styles/colors.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/trade/TradingViewChart.tsx b/components/trade/TradingViewChart.tsx index 7aa75bb9..c3198e86 100644 --- a/components/trade/TradingViewChart.tsx +++ b/components/trade/TradingViewChart.tsx @@ -517,11 +517,11 @@ const TradingViewChart = () => { useEffect(() => { if (window) { let chartStyleOverrides = { - 'paneProperties.background': 'rgba(0,0,0,0)', + 'paneProperties.background': COLORS.BKG1[theme], 'paneProperties.backgroundType': 'solid', 'paneProperties.legendProperties.showBackground': false, - // 'paneProperties.vertGridProperties.color': 'rgba(0,0,0,0)', - // 'paneProperties.horzGridProperties.color': 'rgba(0,0,0,0)', + 'paneProperties.vertGridProperties.color': 'rgba(0,0,0,0)', + 'paneProperties.horzGridProperties.color': 'rgba(0,0,0,0)', 'paneProperties.legendProperties.showStudyTitles': false, 'scalesProperties.showStudyLastValue': false, 'scalesProperties.fontSize': 11, diff --git a/styles/colors.ts b/styles/colors.ts index 584de6da..324582e8 100644 --- a/styles/colors.ts +++ b/styles/colors.ts @@ -1,6 +1,6 @@ export const COLORS: Record> = { BKG1: { - 'Mango Classic': '#18181C', + 'Mango Classic': '#1D1924', Dark: '#111113', Light: '#fcfcfc', 'High Contrast': '#000000',