forked from 0x2620/pandora
Ox.rgb now returns integers
This commit is contained in:
parent
523176ee51
commit
2b50ba84bf
1 changed files with 2 additions and 2 deletions
|
@ -269,9 +269,9 @@ pandora.ui.statisticsDialog = function() {
|
|||
var split = value.split('-'),
|
||||
color = isYearOrMonth ? Ox.rgb(
|
||||
Ox.mod(8 - parseInt(split[1], 10), 12) * 30, 1, 0.5
|
||||
).map(Math.round) : Ox.rgb(
|
||||
) : Ox.rgb(
|
||||
(Math.abs(11.5 - parseInt(split[0], 10)) - 0.5) * -11, 1, 0.5
|
||||
).map(Math.round);
|
||||
);
|
||||
if (pandora.user.ui.theme == 'classic') {
|
||||
color = color.map(function(c) {
|
||||
return c - 64;
|
||||
|
|
Loading…
Reference in a new issue