set bg color in trading view widget
This commit is contained in:
parent
754fb16da0
commit
bba5967b0a
|
@ -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,
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue