forked from 0x2620/oxjs
theme.js -> theme.json; make timeline themed
This commit is contained in:
parent
8097cc7812
commit
66934d22a9
7 changed files with 61 additions and 29 deletions
|
|
@ -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;
|
||||
|
||||
}());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue