nightTab/js/theme.js

20 lines
344 B
JavaScript
Raw Normal View History

2018-12-26 07:45:53 +00:00
var theme = (function() {
var render = function() {
2018-12-26 07:45:53 +00:00
var html = helper.e("html");
var color = state.get().layout.theme;
html.style.setProperty("--accent", color.r + ", " + color.g + ", " + color.b);
2018-12-26 07:45:53 +00:00
};
var init = function() {
render();
2018-12-26 07:45:53 +00:00
};
// exposed methods
return {
init: init,
render: render
};
})();