mirror of
https://github.com/zombieFox/nightTab.git
synced 2024-12-29 18:18:52 +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
|
|
};
|
|
|
|
})();
|