Client - fix dark mode on chart when browser preferences
This commit is contained in:
parent
cc829b412a
commit
e8e79a42dc
@ -42,12 +42,14 @@
|
|||||||
() => store.getters[ROOT_STORE.GETTERS.DARK_MODE]
|
() => store.getters[ROOT_STORE.GETTERS.DARK_MODE]
|
||||||
)
|
)
|
||||||
const lineColors = computed(() => ({
|
const lineColors = computed(() => ({
|
||||||
color: darkMode.value
|
color:
|
||||||
|
darkMode.value !== false
|
||||||
? chartsColors.darkMode.line
|
? chartsColors.darkMode.line
|
||||||
: chartsColors.ligthMode.line,
|
: chartsColors.ligthMode.line,
|
||||||
}))
|
}))
|
||||||
const textColors = computed(() => ({
|
const textColors = computed(() => ({
|
||||||
color: darkMode.value
|
color:
|
||||||
|
darkMode.value !== false
|
||||||
? chartsColors.darkMode.text
|
? chartsColors.darkMode.text
|
||||||
: chartsColors.ligthMode.text,
|
: chartsColors.ligthMode.text,
|
||||||
}))
|
}))
|
||||||
|
@ -118,12 +118,14 @@
|
|||||||
() => datasets.value.coordinates
|
() => datasets.value.coordinates
|
||||||
)
|
)
|
||||||
const lineColors = computed(() => ({
|
const lineColors = computed(() => ({
|
||||||
color: darkMode.value
|
color:
|
||||||
|
darkMode.value !== false
|
||||||
? chartsColors.darkMode.line
|
? chartsColors.darkMode.line
|
||||||
: chartsColors.ligthMode.line,
|
: chartsColors.ligthMode.line,
|
||||||
}))
|
}))
|
||||||
const textColors = computed(() => ({
|
const textColors = computed(() => ({
|
||||||
color: darkMode.value
|
color:
|
||||||
|
darkMode.value !== false
|
||||||
? chartsColors.darkMode.text
|
? chartsColors.darkMode.text
|
||||||
: chartsColors.ligthMode.text,
|
: chartsColors.ligthMode.text,
|
||||||
}))
|
}))
|
||||||
|
Loading…
Reference in New Issue
Block a user