master
William Toohey 10 years ago
parent 2c3363d20b
commit 82c6bf98ff
  1. 4
      css/hues-h.css
  2. 6
      css/hues-m.css
  3. 6
      css/hues-r.css
  4. 36
      css/hues-res.css
  5. 4
      css/hues-x.css
  6. 39
      css/style.css
  7. 16
      js/ResourceManager.js

@ -1,6 +1,4 @@
.HalloweenUI { /* HalloweenUI */
font-family: 'PetMe64Web';
}
.hues-h-text { .hues-h-text {
color: #ff3300; color: #ff3300;

@ -1,9 +1,5 @@
/* Heavily based on Kepstin's wonderful CSS work /* ModernUI, heavily based on Kepstin's wonderful CSS work
https://github.com/kepstin/0x40hues-html5/blob/master/hues-m.css */ https://github.com/kepstin/0x40hues-html5/blob/master/hues-m.css */
.ModernUI {
font-family: 'PetMe64Web';
}
.hues-m-beatbar, .hues-m-beatcenter{ .hues-m-beatbar, .hues-m-beatcenter{
transform: translateY(0px); transform: translateY(0px);

@ -1,8 +1,4 @@
/* TODO: Fix scrollbar */ /* RetroUI */
.RetroUI {
font-family: 'PetMe64Web';
}
.hues-r-container { .hues-r-container {
position: absolute; position: absolute;

@ -151,42 +151,6 @@
display: none; display: none;
} }
.res-button {
font-size: 10px;
margin: 3px 2px;
padding: 3px;
background: rgba(127,127,127, 0.5);
border-color: rgb(0,0,0);
border-width: 1px;
border-style: solid;
cursor: pointer;
/* Don't want double click to select */
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.res-button.hidden {
display: none;
}
.res-button.loaded {
background-color: rgba(0,127,0,0.5);
cursor: auto;
}
.res-button:hover {
background: rgba(255,255,255, 0.5);
}
.res-button.loaded:hover {
background-color: rgba(0,127,0,0.5);
cursor: default;
}
#res-countscontainer { #res-countscontainer {
position: absolute; position: absolute;
bottom: 0; bottom: 0;

@ -1,6 +1,4 @@
.XmasUI { /* XmasUI */
font-family: 'PetMe64Web';
}
.hues-m-controls.hues-x-controls { .hues-m-controls.hues-x-controls {
height: 50px; height: 50px;

@ -38,6 +38,7 @@ html, body {
height: 100%; height: 100%;
margin: 0; padding: 0; margin: 0; padding: 0;
overflow: hidden; overflow: hidden;
font-family: 'PetMe64Web';
} }
h1 { h1 {
@ -132,7 +133,6 @@ h1, h2, h3 {
align-items:center; align-items:center;
-webkit-flex-direction: column; -webkit-flex-direction: column;
flex-direction: column; flex-direction: column;
font-family: 'PetMe64Web';
font-size: 25pt; font-size: 25pt;
position: absolute; position: absolute;
@ -215,7 +215,6 @@ input.tab-input[type="radio"]:checked + label {
border-color: "black"; border-color: "black";
border-width: 2px; border-width: 2px;
border-style: solid; border-style: solid;
font-family: 'PetMe64Web';
} }
#huesSettings { #huesSettings {
@ -294,4 +293,40 @@ label.settings-label:hover {
#huesSettings input[type="radio"]:checked + label { #huesSettings input[type="radio"]:checked + label {
background: rgba(255,255,255, 0.5); background: rgba(255,255,255, 0.5);
}
.hues-button {
font-size: 10px;
margin: 3px 2px;
padding: 3px;
background: rgba(127,127,127, 0.5);
border-color: rgb(0,0,0);
border-width: 1px;
border-style: solid;
cursor: pointer;
/* Don't want double click to select */
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.hues-button.hidden {
display: none;
}
.hues-button.loaded {
background-color: rgba(0,127,0,0.5);
cursor: auto;
}
.hues-button:hover {
background: rgba(255,255,255, 0.5);
}
.hues-button.loaded:hover {
background-color: rgba(0,127,0,0.5);
cursor: default;
} }

@ -310,11 +310,11 @@ Resources.prototype.initUI = function() {
var buttons = document.createElement("div"); var buttons = document.createElement("div");
buttons.className = "res-buttons"; buttons.className = "res-buttons";
var loadRemote = document.createElement("div"); var loadRemote = document.createElement("div");
loadRemote.className = "res-button hidden"; loadRemote.className = "hues-button hidden";
loadRemote.textContent = "LOAD REMOTE"; loadRemote.textContent = "LOAD REMOTE";
loadRemote.onclick = function() {this.loadCurrentRemote();}.bind(this); loadRemote.onclick = function() {this.loadCurrentRemote();}.bind(this);
var loadLocal = document.createElement("div"); var loadLocal = document.createElement("div");
loadLocal.className = "res-button"; loadLocal.className = "hues-button";
loadLocal.textContent = "LOAD ZIPS"; loadLocal.textContent = "LOAD ZIPS";
loadLocal.onclick = function() {this.fileInput.click();}.bind(this); loadLocal.onclick = function() {this.fileInput.click();}.bind(this);
buttons.appendChild(loadLocal); buttons.appendChild(loadLocal);
@ -430,15 +430,15 @@ Resources.prototype.initUI = function() {
packButtons.id = "res-packbuttons"; packButtons.id = "res-packbuttons";
var enableAll = document.createElement("div"); var enableAll = document.createElement("div");
enableAll.textContent = "ENABLE ALL"; enableAll.textContent = "ENABLE ALL";
enableAll.className = "res-button"; enableAll.className = "hues-button";
enableAll.onclick = function() {this.enableAll();}.bind(this); enableAll.onclick = function() {this.enableAll();}.bind(this);
var invert = document.createElement("div"); var invert = document.createElement("div");
invert.textContent = "INVERT"; invert.textContent = "INVERT";
invert.className = "res-button"; invert.className = "hues-button";
invert.onclick = function() {this.invert();}.bind(this); invert.onclick = function() {this.invert();}.bind(this);
var disableAll = document.createElement("div"); var disableAll = document.createElement("div");
disableAll.textContent = "DISABLE ALL"; disableAll.textContent = "DISABLE ALL";
disableAll.className = "res-button"; disableAll.className = "hues-button";
disableAll.onclick = function() {this.disableAll();}.bind(this); disableAll.onclick = function() {this.disableAll();}.bind(this);
packButtons.appendChild(enableAll); packButtons.appendChild(enableAll);
packButtons.appendChild(invert); packButtons.appendChild(invert);
@ -545,7 +545,7 @@ Resources.prototype.selectPack = function(id) {
this.packView.pack = pack; this.packView.pack = pack;
this.packView.packButtons.className = "res-buttons"; this.packView.packButtons.className = "res-buttons";
this.packsView.loadRemote.className = "res-button hidden"; this.packsView.loadRemote.className = "hues-button hidden";
this.packView.name.textContent = pack.name; this.packView.name.textContent = pack.name;
this.packView.creator.textContent = pack.author; this.packView.creator.textContent = pack.author;
@ -724,7 +724,7 @@ Resources.prototype.selectRemotePack = function(id) {
this.packView.pack = pack; this.packView.pack = pack;
this.packView.packButtons.className = "res-buttons hidden"; this.packView.packButtons.className = "res-buttons hidden";
this.packsView.loadRemote.className = "res-button"; this.packsView.loadRemote.className = "hues-button";
if(pack.loaded) { if(pack.loaded) {
this.packsView.loadRemote.className += " loaded"; this.packsView.loadRemote.className += " loaded";
this.packsView.loadRemote.textContent = "LOADED"; this.packsView.loadRemote.textContent = "LOADED";
@ -793,7 +793,7 @@ Resources.prototype.loadCurrentRemote = function() {
// TODO Error checking on failure // TODO Error checking on failure
pack.loaded = true; pack.loaded = true;
this.packsView.loadRemote.className = "res-button loaded"; this.packsView.loadRemote.className = "hues-button loaded";
this.packsView.loadRemote.textContent = "LOADING"; this.packsView.loadRemote.textContent = "LOADING";
this.addAll([pack.url], function() { this.addAll([pack.url], function() {
this.remoteComplete(); this.remoteComplete();

Loading…
Cancel
Save