update md fill and font-color

This commit is contained in:
Gavin Nishizawa 2024-03-18 14:45:30 -07:00
parent 31b38aa1dd
commit ae247ae108
No known key found for this signature in database
GPG key ID: BEE327F003978D1D
6 changed files with 571 additions and 569 deletions

View file

@ -1370,7 +1370,9 @@ func drawShape(writer, appendixWriter io.Writer, diagramHash string, targetShape
if targetShape.FontSize != textmeasure.MarkdownFontSize {
styles = append(styles, fmt.Sprintf("font-size:%vpx", targetShape.FontSize))
}
if targetShape.Fill != "" && targetShape.Fill != "transparent" {
styles = append(styles, fmt.Sprintf(`background-color:%s`, targetShape.Fill))
}
if !color.IsThemeColor(targetShape.Color) {
styles = append(styles, fmt.Sprintf(`color:%s`, targetShape.Color))
}

View file

@ -1925,7 +1925,7 @@ a line of text and an
walk into a bar.
| {
style.stroke: darkorange
style.font-color: darkorange
}
container -> no container
@ -1935,7 +1935,7 @@ they did it in style
|
no container.style: {
stroke: red
font-color: red
fill: "#CEEDEE"
}
`,

View file

@ -58,7 +58,7 @@
"strokeWidth": 2,
"borderRadius": 0,
"fill": "transparent",
"stroke": "darkorange",
"stroke": "N1",
"shadow": false,
"3d": false,
"multiple": false,
@ -75,7 +75,7 @@
"fontSize": 16,
"fontFamily": "DEFAULT",
"language": "markdown",
"color": "N1",
"color": "darkorange",
"italic": false,
"bold": false,
"underline": false,
@ -98,7 +98,7 @@
"strokeWidth": 2,
"borderRadius": 0,
"fill": "#CEEDEE",
"stroke": "red",
"stroke": "N1",
"shadow": false,
"3d": false,
"multiple": false,
@ -115,7 +115,7 @@
"fontSize": 16,
"fontFamily": "DEFAULT",
"language": "markdown",
"color": "N1",
"color": "red",
"italic": false,
"bold": false,
"underline": false,

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View file

@ -58,7 +58,7 @@
"strokeWidth": 2,
"borderRadius": 0,
"fill": "transparent",
"stroke": "darkorange",
"stroke": "N1",
"shadow": false,
"3d": false,
"multiple": false,
@ -75,7 +75,7 @@
"fontSize": 16,
"fontFamily": "DEFAULT",
"language": "markdown",
"color": "N1",
"color": "darkorange",
"italic": false,
"bold": false,
"underline": false,
@ -98,7 +98,7 @@
"strokeWidth": 2,
"borderRadius": 0,
"fill": "#CEEDEE",
"stroke": "red",
"stroke": "N1",
"shadow": false,
"3d": false,
"multiple": false,
@ -115,7 +115,7 @@
"fontSize": 16,
"fontFamily": "DEFAULT",
"language": "markdown",
"color": "N1",
"color": "red",
"italic": false,
"bold": false,
"underline": false,

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB