add light mode

This commit is contained in:
Gregor Vostrak
2025-03-28 14:00:19 +01:00
parent 7339b79e35
commit df2fe1da1e
124 changed files with 579 additions and 369 deletions

View File

@@ -1,15 +1,15 @@
<script setup lang="ts">
import VChart from 'vue-echarts';
import { ref } from 'vue';
import { computed, ref } from 'vue';
import { useCssVar } from '@vueuse/core';
const props = defineProps<{
history: number[];
}>();
const accentColor = useCssVar('--color-accent-quaternary');
const accentColor = useCssVar('--theme-color-chart', null, { observe: true });
const seriesData = props.history.map((el) => {
const seriesData = computed(() => props.history.map((el) => {
return {
value: el,
...{
@@ -21,7 +21,7 @@ const seriesData = props.history.map((el) => {
},
},
};
});
}));
const option = ref({
grid: {
top: 0,