theme could be in plugin

This commit is contained in:
Jan Prochazka
2022-01-29 18:17:04 +01:00
parent 157325f605
commit a49296e165
7 changed files with 17 additions and 6 deletions

View File

@@ -695,13 +695,17 @@
if (css) css += '\n';
css += cssItem;
}
if ($currentThemeDefinition?.themeCss) {
if (css) css += '\n';
css += $currentThemeDefinition?.themeCss;
}
saveFileToDisk(async filePath => {
await apiCall('files/export-diagram', {
filePath,
html: domCanvas.outerHTML,
css,
themeType: $currentThemeDefinition?.themeType,
themeClassName: $currentThemeDefinition?.className,
themeClassName: $currentThemeDefinition?.themeClassName,
});
});
}