From df00b877a84d602458e49fdc37fce2cbf7e23d6b Mon Sep 17 00:00:00 2001 From: dajiaohuang Date: Wed, 21 Oct 2026 18:32:36 +0800 Subject: [PATCH] fix: apply default theme when exporting to a path --- src/C4Sharp/Diagrams/Plantuml/PlantumlContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/C4Sharp/Diagrams/Plantuml/PlantumlContext.cs b/src/C4Sharp/Diagrams/Plantuml/PlantumlContext.cs index 0e1718a..471bd0c 100644 --- a/src/C4Sharp/Diagrams/Plantuml/PlantumlContext.cs +++ b/src/C4Sharp/Diagrams/Plantuml/PlantumlContext.cs @@ -112,7 +112,7 @@ private void InternalExport(IEnumerable diagrams) /// /// ReSharper disable once MemberCanBePrivate.Global public void Export(string path, IEnumerable diagrams, IDiagramTheme? theme = null) => - InternalExport(path, diagrams.Select(d => d.Build(theme))); + InternalExport(path, diagrams.Select(d => d.Build(theme ?? new DefaultTheme()))); /// /// It creates a Puml file into the default directory "./c4"