rewrite the tinter to be ES6, and correctly cache fixups per theme

This commit is contained in:
Matthew Hodgson 2017-11-08 06:55:07 -08:00
parent e729bc431d
commit 58ee4d0a76
2 changed files with 144 additions and 125 deletions

View file

@ -922,7 +922,7 @@ module.exports = React.createClass({
});
styleElements[theme].disabled = false;
Tinter.calcCssFixups();
Tinter.setTheme(theme);
const colors = Tinter.getCurrentColors();
Tinter.tint(colors[0], colors[1]);