support for high contrast in simulator (#386)

* support for high contrast in simulator

* updated logic to find afterProgramPage.
This commit is contained in:
Peli de Halleux
2017-04-19 23:44:47 -07:00
committed by GitHub
parent 89848beb61
commit 1cf38d92ef
4 changed files with 26 additions and 7 deletions

View File

@ -120,9 +120,11 @@ namespace pxsim {
fnArgs: fnArgs,
maxWidth: "100%",
maxHeight: "100%",
highContrast: msg.highContrast
};
const viewHost = new visuals.BoardHost(pxsim.visuals.mkBoardView({
visual: boardDef.visual
visual: boardDef.visual,
highContrast: msg.highContrast
}), opts);
document.body.innerHTML = ""; // clear children