use Ox.formatColorPercent

This commit is contained in:
rolux 2012-10-05 14:15:27 +02:00
commit af9a038c19
2 changed files with 3 additions and 3 deletions

View file

@ -462,7 +462,7 @@ pandora.ui.infoView = function(data) {
.css({marginBottom: '4px'})
.append(formatKey(key == 'votes' ? 'Mainstream Score' : 'Arthouse Score'), true)
.append(
Ox.Theme.formatColor(value * 1.2, 'hue')
Ox.Theme.formatColor(Math.sqrt(value) * 12, 'hue')
.css({textAlign: 'right'})
.html(Ox.formatNumber(value, 1) + '%')
)