calculate new CSS tinting when we change theme

This commit is contained in:
Matthew Hodgson 2017-11-04 23:50:57 +00:00
parent b2ddcb8027
commit e72e30197a
2 changed files with 86 additions and 82 deletions

View file

@ -919,6 +919,8 @@ module.exports = React.createClass({
});
styleElements[theme].disabled = false;
Tinter.calcCssFixups();
if (theme === 'dark') {
// abuse the tinter to change all the SVG's #fff to #2d2d2d
// XXX: obviously this shouldn't be hardcoded here.