mirror of
https://github.com/zombieFox/nightTab.git
synced 2024-12-11 09:21:28 +01:00
20 lines
344 B
JavaScript
20 lines
344 B
JavaScript
var theme = (function() {
|
|
|
|
var render = function() {
|
|
var html = helper.e("html");
|
|
var color = state.get().layout.theme;
|
|
html.style.setProperty("--accent", color.r + ", " + color.g + ", " + color.b);
|
|
};
|
|
|
|
var init = function() {
|
|
render();
|
|
};
|
|
|
|
// exposed methods
|
|
return {
|
|
init: init,
|
|
render: render
|
|
};
|
|
|
|
})();
|