Make dashboard learning status meaningful
mindflux-ci / build (push) Successful in 23s

This commit is contained in:
AliceDarkest
2026-07-14 15:03:18 +02:00
parent 56cd17520e
commit bd76cd11de
13 changed files with 233 additions and 27 deletions
+3 -2
View File
@@ -81,8 +81,9 @@
<!-- Diagramme -->
<script th:inline="javascript">
// Theme-Tokens auslesen, damit die Charts in Dark (Grün) & Light (Magenta) passen
const css = getComputedStyle(document.documentElement);
// Die Plattform-Tokens liegen auf body.sn-platform. Von dort lesen, damit die
// Diagramme nicht auf die alte globale Akzentfarbe zurückfallen.
const css = getComputedStyle(document.body);
const accent = css.getPropertyValue('--accent').trim() || '#2bd96a';
const track = css.getPropertyValue('--surface-2').trim() || '#2c2c2c';
const tick = css.getPropertyValue('--text').trim() || '#f1f1f1';