changeset 484:44d20bccf36b Dev_main

More volume control styling
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Fri, 22 Jan 2016 17:03:18 +0000
parents a275f9689af6
children 92f26057b934
files core.css core.js
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core.css	Fri Jan 22 11:10:33 2016 +0000
+++ b/core.css	Fri Jan 22 17:03:18 2016 +0000
@@ -101,8 +101,10 @@
 
 div#master-volume-holder {
     width: 250px;
-    height: 25px;
     float: left;
+    border: black 1px solid;
+    border-radius: 5px;
+    padding: 5px;
 }
 
 input#master-volume-control {
--- a/core.js	Fri Jan 22 11:10:33 2016 +0000
+++ b/core.js	Fri Jan 22 17:03:18 2016 +0000
@@ -2824,6 +2824,13 @@
             storePoint.appendChild(node);
         }
         
+        var title = document.createElement('div');
+        title.innerHTML = '<span>Master Volume Control</span>';
+        title.style.fontSize = '0.75em';
+        title.style.width = "100%";
+        title.align = 'center';
+        this.object.appendChild(title);
+        
         this.object.appendChild(this.slider);
         this.object.appendChild(this.valueText);
     }