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

@ -2,9 +2,9 @@ namespace pxsim.visuals {
mkBoardView = (opts: BoardViewOptions): BoardView => {
return new visuals.MicrobitBoardSvg({
runtime: runtime,
theme: visuals.randomTheme(),
theme: visuals.randomTheme(opts.highContrast),
disableTilt: false,
wireframe: opts.wireframe,
wireframe: opts.wireframe
});
}
}