Skip to content

Commit

Permalink
add a BW version with a white background
Browse files Browse the repository at this point in the history
  • Loading branch information
laowantong committed Dec 8, 2022
1 parent bae8175 commit 71c51d3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions mocodo/resources/colors/bw-alpha.json
@@ -0,0 +1,18 @@
{
"association_attribute_text_color": "#000",
"association_cartouche_color": "#FFF",
"association_cartouche_text_color": "#000",
"association_color": "#FFF",
"association_stroke_color": "#000",
"background_color": null,
"card_text_color": "#000",
"entity_attribute_text_color": "#000",
"entity_cartouche_color": "#FFF",
"entity_cartouche_text_color": "#000",
"entity_color": "#FFF",
"entity_stroke_color": "#000",
"leg_stroke_color": "#000",
"note_color": "#000",
"note_opacity": 0.7,
"note_text_color": "#FFF"
}
2 changes: 1 addition & 1 deletion mocodo/resources/colors/bw.json
Expand Up @@ -4,7 +4,7 @@
"association_cartouche_text_color": "#000",
"association_color": "#FFF",
"association_stroke_color": "#000",
"background_color": null,
"background_color": "#FFF",
"card_text_color": "#000",
"entity_attribute_text_color": "#000",
"entity_cartouche_color": "#FFF",
Expand Down
2 changes: 1 addition & 1 deletion web/mocodo.js
Expand Up @@ -406,7 +406,7 @@ $().ready(function () {
createTabs();
$.get(location.protocol + '//' + location.host + "/resources/pristine_sandbox.mcd", function (data) { $("#text").val(data) });
var default_color = "brewer" + "+-"[Math.floor(Math.random() * 2)] + (Math.floor(Math.random() * 9) + 1);
createOptions("colors", ["blank", "bw", "desert", "keepsake", "mondrian", "ocean", "pond", "wb", "xinnian", "brewer+1", "brewer-1", "brewer+2", "brewer-2", "brewer+3", "brewer-3", "brewer+4", "brewer-4", "brewer+5", "brewer-5", "brewer+6", "brewer-6", "brewer+7", "brewer-7", "brewer+8", "brewer-8", "brewer+9", "brewer-9"], default_color);
createOptions("colors", ["blank", "bw", "bw-alpha", "desert", "keepsake", "mondrian", "ocean", "pond", "wb", "xinnian", "brewer+1", "brewer-1", "brewer+2", "brewer-2", "brewer+3", "brewer-3", "brewer+4", "brewer-4", "brewer+5", "brewer-5", "brewer+6", "brewer-6", "brewer+7", "brewer-7", "brewer+8", "brewer-8", "brewer+9", "brewer-9"], default_color);
createOptions("shapes", ["arial", "copperplate", "georgia", "mondrian", "sans", "serif", "times", "trebuchet", "verdana", "xinnian"], "verdana");
createOptions("disambiguation", ["notes et numéros", "numéros seulement"], "notes et numéros");
var items = Object.keys(delays).map(function (key) { return { "value": delays[key], "name": key } });
Expand Down

0 comments on commit 71c51d3

Please sign in to comment.