fix: define `arrowheadColor` for `theme-base`

Define `arrowheadColor` as `invert(this.background)` in
`theme-base.js`, as it's currently `undefined`, which causes CSS
issues when using `theme-base`.

I've picked `invert(this.background)` so that it matches
the default value of `lineColor`.
This commit is contained in:
Alois Klink 2023-04-13 06:24:20 +01:00
parent 7566b5620e
commit 54f827d850
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ class Theme {
this.secondaryTextColor = this.secondaryTextColor || invert(this.secondaryColor);
this.tertiaryTextColor = this.tertiaryTextColor || invert(this.tertiaryColor);
this.lineColor = this.lineColor || invert(this.background);
this.arrowheadColor = this.arrowheadColor || invert(this.background);
this.textColor = this.textColor || this.primaryTextColor;
/* Flowchart variables */