Enhance user journey diagram title color configuration

This commit is contained in:
Shahir Ahmed
2025-01-25 20:33:39 -05:00
parent 5120ed09ab
commit a30705cdcc
2 changed files with 4 additions and 2 deletions

View File

@@ -49,6 +49,7 @@ const conf = getConfig().journey;
const LEFT_MARGIN = conf.leftMargin;
export const draw = function (text, id, version, diagObj) {
const conf = getConfig().journey;
const titleColor = getConfig().themeVariables.titleColor;
const securityLevel = getConfig().securityLevel;
// Handle root and Document for when rendering in sandbox mode
@@ -95,7 +96,8 @@ export const draw = function (text, id, version, diagObj) {
.attr('x', LEFT_MARGIN)
.attr('font-size', '4ex')
.attr('font-weight', 'bold')
.attr('y', 25);
.attr('y', 25)
.attr('fill', titleColor);
}
const height = box.stopy - box.starty + 2 * conf.diagramMarginY;

View File

@@ -178,7 +178,7 @@ class Theme {
this.clusterBkg = this.secondBkg;
this.clusterBorder = this.border2;
this.defaultLinkColor = this.lineColor;
this.titleColor = this.textColor;
this.titleColor = this.titleColor || this.textColor;
this.edgeLabelBackground = this.labelBackground;
/* Sequence Diagram variables */