Commit prior work by knsv

This commit is contained in:
Per Brolin
2024-06-11 13:43:54 +02:00
parent 6dcdec0126
commit a9aa8b7f1a
2 changed files with 6 additions and 3 deletions

View File

@@ -123,7 +123,7 @@ stateDiagram-v2
flowchart: { titleTopMargin: 10 }, flowchart: { titleTopMargin: 10 },
// fontFamily: 'Caveat', // fontFamily: 'Caveat',
// fontFamily: 'Kalam', // fontFamily: 'Kalam',
fontFamily: 'arial', fontFamily: 'Arial',
sequence: { sequence: {
actorFontFamily: 'arial', actorFontFamily: 'arial',
noteFontFamily: 'arial', noteFontFamily: 'arial',

View File

@@ -22,11 +22,15 @@ class Theme {
this.noteTextColor = '#333'; this.noteTextColor = '#333';
this.THEME_COLOR_LIMIT = 12; this.THEME_COLOR_LIMIT = 12;
this.radius = 2; this.radius = 3;
// dark // dark
this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif'; this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif';
this.fontSize = '10px'; this.fontSize = '10px';
// Neo-specific
this.nodeBorder = 'none';
this.stateBorder = 'none';
} }
updateColors() { updateColors() {
// The || is to make sure that if the variable has been defined by a user override that value is to be used // The || is to make sure that if the variable has been defined by a user override that value is to be used
@@ -58,7 +62,6 @@ class Theme {
this.nodeBkg = this.nodeBkg || this.primaryColor; this.nodeBkg = this.nodeBkg || this.primaryColor;
this.mainBkg = this.mainBkg || this.primaryColor; this.mainBkg = this.mainBkg || this.primaryColor;
this.nodeBorder = this.nodeBorder || this.primaryBorderColor; this.nodeBorder = this.nodeBorder || this.primaryBorderColor;
this.nodeBorder = 'none';
this.clusterBkg = this.clusterBkg || this.tertiaryColor; this.clusterBkg = this.clusterBkg || this.tertiaryColor;
this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor; this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor;
this.defaultLinkColor = this.defaultLinkColor || this.lineColor; this.defaultLinkColor = this.defaultLinkColor || this.lineColor;