minor bug fix

This commit is contained in:
sairaj mote 2022-05-16 10:57:06 +05:30
parent 6d134ec22f
commit 744c30167c

View File

@ -1744,7 +1744,7 @@
function getChartTheme() { function getChartTheme() {
const theme = getRef('theme_toggle').value const theme = getRef('theme_toggle').value
const textColor = window.getComputedStyle(document.body).getPropertyValue('--text-color') const textColor = window.getComputedStyle(document.body).getPropertyValue('--text-color')
const accentColor = window.getComputedStyle(document.body).getPropertyValue('--accent-color') const accentColor = theme === 'dark' ? '#a4b3ff' : '#516beb'
return { return {
chart: { chart: {
layout: { layout: {