diff --git a/index.html b/index.html
index 00060d3b..cf8f3e77 100644
--- a/index.html
+++ b/index.html
@@ -383,10 +383,13 @@
-
diff --git a/js/control.js b/js/control.js
index 4a7fda97..cb79906d 100644
--- a/js/control.js
+++ b/js/control.js
@@ -491,6 +491,13 @@ var control = (function() {
func: function() {
render();
}
+ }, {
+ element: helper.e(".control-layout-theme-randomise"),
+ type: "button",
+ func: function() {
+ theme.random();
+ theme.render();
+ }
}, {
element: helper.e(".control-background-image-show"),
path: "background.image.show",
@@ -856,10 +863,12 @@ var control = (function() {
if (state.get().layout.theme.random.active) {
helper.eA("input[name='control-layout-theme-style']").forEach(function(arrayItem, index) {
arrayItem.disabled = false;
+ helper.e(".control-layout-theme-randomise").disabled = false;
});
} else {
helper.eA("input[name='control-layout-theme-style']").forEach(function(arrayItem, index) {
arrayItem.disabled = true;
+ helper.e(".control-layout-theme-randomise").disabled = true;
});
};
};