Movetime chart: Keep old color for hunters

pull/9157/head
Benedikt Werner 2021-06-12 15:47:04 +02:00
parent d2c9d8fc87
commit 0a9774e950
No known key found for this signature in database
GPG Key ID: 1DBFF0F8E9E121EB
1 changed files with 2 additions and 2 deletions

View File

@ -24,10 +24,10 @@ lichess.movetimeChart = function (data, trans, hunter) {
const highlightColor = '#3893E8';
const xAxisColor = '#cccccc99';
const whiteAreaFill = 'rgba(255, 255, 255, 0.2)';
const whiteAreaFill = hunter ? Highcharts.theme.lichess.area.white : 'rgba(255, 255, 255, 0.2)';
const whiteColumnFill = 'rgba(255, 255, 255, 0.9)';
const whiteColumnBorder = '#00000044';
const blackAreaFill = 'rgba(0, 0, 0, 0.4)';
const blackAreaFill = hunter ? Highcharts.theme.lichess.area.black : 'rgba(0, 0, 0, 0.4)';
const blackColumnFill = 'rgba(0, 0, 0, 0.9)';
const blackColumnBorder = '#ffffff33';