1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

start work to allow custom accent colors

This commit is contained in:
RaidMax
2019-07-27 08:18:49 -05:00
parent 6b09889f6e
commit 75ce21597b
20 changed files with 499 additions and 285 deletions

View File

@ -20,6 +20,8 @@
if (interval < 1)
interval = 1;
let primaryColor = document.documentElement.style.getPropertyValue('--primary');
return new CanvasJS.Chart(id, {
backgroundColor: 'transparent',
height: height,
@ -55,7 +57,7 @@
},
data: [{
type: 'splineArea',
color: 'rgba(0, 122, 204, 0.25)',
color: primaryColor.endsWith('80') ? primaryColor : primaryColor + '40',
markerSize: 3.5,
dataPoints: fixedData
}]