set bg color in trading view widget

This commit is contained in:
tjs 2023-08-17 16:36:25 -04:00
parent 754fb16da0
commit bba5967b0a
2 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -1,6 +1,6 @@
export const COLORS: Record<string, Record<string, string>> = {
BKG1: {
'Mango Classic': '#18181C',
'Mango Classic': '#1D1924',
Dark: '#111113',
Light: '#fcfcfc',
'High Contrast': '#000000',