diff --git a/webui/src/App.vue b/webui/src/App.vue index 0e8961ff..f8e4cb38 100644 --- a/webui/src/App.vue +++ b/webui/src/App.vue @@ -6,7 +6,7 @@
-
+

{{ $t('clients') }}

@@ -20,7 +20,7 @@
diff --git a/webui/src/assets/style.css b/webui/src/assets/style.css index b5c61c95..0e5da320 100644 --- a/webui/src/assets/style.css +++ b/webui/src/assets/style.css @@ -1,3 +1,13 @@ @tailwind base; @tailwind components; @tailwind utilities; + +@layer utilities { + html * { + @apply transition-colors ease-linear duration-200; + } +} + +html.dark .vue-apexcharts { + filter: invert(1); +} \ No newline at end of file diff --git a/webui/src/components/Auth.vue b/webui/src/components/Auth.vue index fbeb5ef6..eb901b2c 100644 --- a/webui/src/components/Auth.vue +++ b/webui/src/components/Auth.vue @@ -28,7 +28,7 @@ -
+
diff --git a/webui/src/components/ClientCharts.vue b/webui/src/components/ClientCharts.vue index f8e11002..7d1fba61 100644 --- a/webui/src/components/ClientCharts.vue +++ b/webui/src/components/ClientCharts.vue @@ -36,9 +36,9 @@ const UI_CHART_TYPES = [ ]; const CHART_COLORS = { - rx: { light: 'rgba(128,128,128,0.3)', dark: 'rgba(255,255,255,0.3)' }, - tx: { light: 'rgba(128,128,128,0.4)', dark: 'rgba(255,255,255,0.3)' }, - gradient: { light: ['rgba(0,0,0,0.1)', 'rgba(0,0,0,1.0)'], dark: ['rgba(128,128,128,0)', 'rgba(128,128,128,0)'] }, + rx: 'rgba(0,0,0,0.2)' , + tx: 'rgba(0,0,0,0.3)' , + gradient: ['rgba(0,0,0,0.1)', 'rgba(0,0,0,1.0)'] , }; defineProps({ @@ -48,31 +48,24 @@ defineProps({ const store = useStore(); const { uiChartType, uiTheme, prefersDarkScheme, updateCharts } = storeToRefs(store); -const darkOrLight = computed(() => { - if (uiTheme.value === 'auto') { - return prefersDarkScheme.value.matches ? 'dark' : 'light'; - } - return uiTheme.value; -}); - const chartOptionsTX = computed(() => { const opts = { ...chartOptions, - colors: [CHART_COLORS.tx[darkOrLight.value]], + colors: [CHART_COLORS.tx], }; opts.chart.type = UI_CHART_TYPES[uiChartType.value].type || false; opts.stroke.width = UI_CHART_TYPES[uiChartType.value].strokeWidth; - opts.fill.gradient.gradientToColors = CHART_COLORS.gradient[darkOrLight.value]; + opts.fill.gradient.gradientToColors = CHART_COLORS.gradient; return opts; }); const chartOptionsRX = computed(() => { const opts = { ...chartOptions, - colors: [CHART_COLORS.rx[darkOrLight.value]], + colors: [CHART_COLORS.rx], }; opts.chart.type = UI_CHART_TYPES[uiChartType.value].type || false; opts.stroke.width = UI_CHART_TYPES[uiChartType.value].strokeWidth; - opts.fill.gradient.gradientToColors = CHART_COLORS.gradient[darkOrLight.value]; + opts.fill.gradient.gradientToColors = CHART_COLORS.gradient; return opts; }); diff --git a/webui/src/components/ClientControls.vue b/webui/src/components/ClientControls.vue index 88949453..78f407aa 100644 --- a/webui/src/components/ClientControls.vue +++ b/webui/src/components/ClientControls.vue @@ -4,7 +4,7 @@
@@ -13,7 +13,7 @@
@@ -23,7 +23,7 @@