1
0
Fork 0
forked from 0x2620/oxjs

theme.js -> theme.json; make timeline themed

This commit is contained in:
rolux 2012-01-04 15:20:07 +05:30
commit 66934d22a9
7 changed files with 61 additions and 29 deletions

View file

@ -27,7 +27,7 @@ Ox.Theme = (function() {
}
function renderElement(val, type) {
var $element, background, color, lightness = that.lightness[getTheme()];
var $element, background, color, lightness = that[getTheme()].lightness;
if (type == 'hue') {
background = Ox.rgb(val, 1, lightness.background).map(function(val) {
return Math.round(val);
@ -138,11 +138,6 @@ Ox.Theme = (function() {
.html(values[+index]);
};
that.lightness = {
classic: {background: 0.75, color: 0.25},
modern: {background: 0.25, color: 0.75}
};
return that;
}());