From 3b27bccddaa5bb4bd6eed65a155824e81a03421c Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Wed, 29 Jul 2026 16:25:36 +0200 Subject: [PATCH] diagrams: force light theme for mermaid rendering Text and connectors were invisible because mmdc rendered with a dark theme (white text/edges) on the white diagram background. Explicitly pass -t default to force dark text on light background. --- gui/chatblockmodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/chatblockmodel.cpp b/gui/chatblockmodel.cpp index 6a875ef..af15526 100644 --- a/gui/chatblockmodel.cpp +++ b/gui/chatblockmodel.cpp @@ -966,7 +966,8 @@ QString ChatBlockModel::diagramUrl(const QString &source, const QString &languag proc.start(mmdc, { QStringLiteral("-i"), input.fileName(), QStringLiteral("-o"), svgPath, - QStringLiteral("-b"), QStringLiteral("transparent") + QStringLiteral("-t"), QStringLiteral("default"), + QStringLiteral("-b"), QStringLiteral("white") }); if (!proc.waitForFinished(15000))