fix(gantt): use color variables for gantt header so that it works in dark mode
This commit is contained in:
parent
8a82093233
commit
b8533d2bfc
@ -19,6 +19,7 @@
|
|||||||
:width="ganttChartWidth"
|
:width="ganttChartWidth"
|
||||||
@dragendBar="updateGanttTask"
|
@dragendBar="updateGanttTask"
|
||||||
@dblclickBar="openTask"
|
@dblclickBar="openTask"
|
||||||
|
:color-scheme="GANTT_COLOR_SCHEME"
|
||||||
>
|
>
|
||||||
<template #timeunit="{value, date}">
|
<template #timeunit="{value, date}">
|
||||||
<div
|
<div
|
||||||
@ -59,7 +60,7 @@ import {
|
|||||||
extendDayjs,
|
extendDayjs,
|
||||||
GGanttChart,
|
GGanttChart,
|
||||||
GGanttRow,
|
GGanttRow,
|
||||||
type GanttBarObject,
|
type GanttBarObject, type ColorScheme,
|
||||||
} from '@infectoone/vue-ganttastic'
|
} from '@infectoone/vue-ganttastic'
|
||||||
|
|
||||||
import Loading from '@/components/misc/loading.vue'
|
import Loading from '@/components/misc/loading.vue'
|
||||||
@ -113,6 +114,16 @@ const ganttChartWidth = computed(() => {
|
|||||||
|
|
||||||
const ganttBars = ref<GanttBarObject[][]>([])
|
const ganttBars = ref<GanttBarObject[][]>([])
|
||||||
|
|
||||||
|
const GANTT_COLOR_SCHEME: ColorScheme = {
|
||||||
|
primary: 'var(--grey-100)',
|
||||||
|
secondary: 'var(--grey-300)',
|
||||||
|
ternary: 'var(--grey-500)',
|
||||||
|
quartenary: 'var(--grey-600)',
|
||||||
|
hoverHighlight: 'var(--grey-700)',
|
||||||
|
text: 'var(--grey-800)',
|
||||||
|
background: 'var(--white)',
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update ganttBars when tasks change
|
* Update ganttBars when tasks change
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user