From d473f3904a1464763d2d57bcd6f9a0922e0e3d2f Mon Sep 17 00:00:00 2001 From: Lishid Date: Thu, 22 Oct 2020 21:55:13 -0400 Subject: [PATCH 1/3] Fixed bad tertiary operator This fixes the tertiary operator used to compute the `edgeLabelBackground` theme variable. --- src/themes/theme-base.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/themes/theme-base.js b/src/themes/theme-base.js index e90a1b0f5..633212e92 100644 --- a/src/themes/theme-base.js +++ b/src/themes/theme-base.js @@ -63,10 +63,8 @@ class Theme { this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor; this.defaultLinkColor = this.defaultLinkColor || this.lineColor; this.titleColor = this.titleColor || this.tertiaryTextColor; - this.edgeLabelBackground = - this.edgeLabelBackground || this.darkMode - ? darken(this.secondaryColor, 30) - : this.secondaryColor; + this.edgeLabelBackground = this.edgeLabelBackground || + (this.darkMode ? darken(this.secondaryColor, 30) : this.secondaryColor); this.nodeTextColor = this.nodeTextColor || this.primaryTextColor; /* Sequence Diagram variables */ From 521bfc66f03f44eaa971943ea566b403506fa3b6 Mon Sep 17 00:00:00 2001 From: Lishid Date: Thu, 22 Oct 2020 22:14:10 -0400 Subject: [PATCH 2/3] Update theme-base.js --- src/themes/theme-base.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/themes/theme-base.js b/src/themes/theme-base.js index 633212e92..49d3d8c5a 100644 --- a/src/themes/theme-base.js +++ b/src/themes/theme-base.js @@ -63,8 +63,8 @@ class Theme { this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor; this.defaultLinkColor = this.defaultLinkColor || this.lineColor; this.titleColor = this.titleColor || this.tertiaryTextColor; - this.edgeLabelBackground = this.edgeLabelBackground || - (this.darkMode ? darken(this.secondaryColor, 30) : this.secondaryColor); + this.edgeLabelBackground = + this.edgeLabelBackground || (this.darkMode ? darken(this.secondaryColor, 30) : this.secondaryColor); this.nodeTextColor = this.nodeTextColor || this.primaryTextColor; /* Sequence Diagram variables */ From 69113a988f7f24f3350a58181b560f23d5248367 Mon Sep 17 00:00:00 2001 From: Lishid Date: Thu, 22 Oct 2020 22:17:43 -0400 Subject: [PATCH 3/3] Update theme-base.js --- src/themes/theme-base.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/themes/theme-base.js b/src/themes/theme-base.js index 49d3d8c5a..fdf5d8848 100644 --- a/src/themes/theme-base.js +++ b/src/themes/theme-base.js @@ -64,7 +64,8 @@ class Theme { this.defaultLinkColor = this.defaultLinkColor || this.lineColor; this.titleColor = this.titleColor || this.tertiaryTextColor; this.edgeLabelBackground = - this.edgeLabelBackground || (this.darkMode ? darken(this.secondaryColor, 30) : this.secondaryColor); + this.edgeLabelBackground || + (this.darkMode ? darken(this.secondaryColor, 30) : this.secondaryColor); this.nodeTextColor = this.nodeTextColor || this.primaryTextColor; /* Sequence Diagram variables */