diff --git a/source/Ox.UI/js/Core/Theme.js b/source/Ox.UI/js/Core/Theme.js index 221901c4..981db4f5 100644 --- a/source/Ox.UI/js/Core/Theme.js +++ b/source/Ox.UI/js/Core/Theme.js @@ -29,21 +29,13 @@ Ox.Theme = (function() { function renderElement(value, type) { var $element, background, color, lightness = that[getTheme()].lightness; if (type == 'hue') { - background = Ox.rgb(value, 1, lightness.background).map(function(value) { - return Math.round(value); - }); - color = Ox.rgb(value, 1, lightness.color).map(function(value) { - return Math.round(value); - }); + background = Ox.rgb(value, 1, lightness.background); + color = Ox.rgb(value, 1, lightness.color); } else if (type == 'saturation') { background = Ox.range(7).map(function(i) { - return Ox.rgb(i * 60, value, lightness.background).map(function(value) { - return Math.round(value); - }); - }); - color = Ox.rgb(0, 0, lightness.color).map(function(value) { - return Math.round(value); + return Ox.rgb(i * 60, value, lightness.background); }); + color = Ox.rgb(0, 0, lightness.color); } else if (type == 'lightness') { background = Ox.range(3).map(function() { return Math.round(value * 255); @@ -54,12 +46,10 @@ Ox.Theme = (function() { } else if (type == 'gradient') { background = Ox.range(2).map(function(i) { return Ox.rgb(value, 1, lightness.background).map(function(value) { - return Math.round(value + (i == 0 ? 16 : -16)); + return value + (i == 0 ? 16 : -16); }); }); - color = Ox.rgb(value, 1, lightness.color).map(function(value) { - return Math.round(value); - }); + color = Ox.rgb(value, 1, lightness.color); } $element = $('