benweet / stackedit

In-browser Markdown editor
https://stackedit.io/
Apache License 2.0
21.7k stars 2.72k forks source link

Feature Request: include color-coding for flowchart.js (flowstate?) #594

Closed ILMostro closed 9 years ago

ILMostro commented 9 years ago

At the moment, using the stackedit app from the chrome webstore, there doesn't appear to be support for flowchart.js. It'd be nice, as it seems to be a feasible option, to include a way to customize the background colors of the various flowchart "boxes". See http://adrai.github.io/flowchart.js/ Demo2 for an example.

benweet commented 9 years ago

Fixed in 4.3.2. I've added a config block in Settings>Extension>UML diagrams. You can try flowstate using the following config block:

{
    "flowstate" : {
        "past" : { "fill" : "#CCCCCC", "font-size" : 12},
        "current" : {"fill" : "yellow", "font-color" : "red", "font-weight" : "bold"},
        "future" : { "fill" : "#FFFF99"},
        "invalid": {"fill" : "#444444"},
        "approved" : { "fill" : "#58C4A3", "font-size" : 12, "yes-text" : "APPROVED", "no-text" : "n/a" },
        "rejected" : { "fill" : "#C45879", "font-size" : 12, "yes-text" : "n/a", "no-text" : "REJECTED" }
    }
}