Improved theme support

This commit is contained in:
Devine Lu Linvega
2018-09-12 13:20:31 +12:00
parent 81687281d5
commit a0ede91554
13 changed files with 150 additions and 116 deletions

View File

@@ -15,10 +15,10 @@ function Guide()
this.start = function()
{
this.clear();
this.refresh();
this.update();
}
this.refresh = function(force = false)
this.update = function(force = false)
{
this.clear();
@@ -45,7 +45,7 @@ function Guide()
this.toggle = function()
{
this.show_extras = this.show_extras ? false : true;
this.refresh()
this.update()
}
this.resize = function(size)
@@ -56,7 +56,7 @@ function Guide()
this.el.style.width = (size.width+offset)+"px";
this.el.style.height = (size.height+(offset*2))+"px";
this.refresh();
this.update();
}
this.draw_handles = function()