forked from 0x2620/pandora
use Ox.formatColorPercent
This commit is contained in:
parent
9ca815d99b
commit
af9a038c19
2 changed files with 3 additions and 3 deletions
|
@ -325,7 +325,7 @@
|
|||
"title": "Mainstream Score",
|
||||
"type": "float",
|
||||
"columnWidth": 60,
|
||||
"format": {"type": "unit", "args": ["%", 1]},
|
||||
"format": {"type": "ColorPercent", "args": [1, true]},
|
||||
"sort": true
|
||||
},
|
||||
{
|
||||
|
@ -333,7 +333,7 @@
|
|||
"title": "Arthouse Score",
|
||||
"type": "float",
|
||||
"columnWidth": 60,
|
||||
"format": {"type": "unit", "args": ["%", 1]},
|
||||
"format": {"type": "ColorPercent", "args": [1, true]},
|
||||
"sort": true
|
||||
},
|
||||
{
|
||||
|
|
|
@ -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) + '%')
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue