diff options
author | Frank Karlitschek <karlitschek@gmx.de> | 2019-03-13 22:36:37 +0300 |
---|---|---|
committer | Frank Karlitschek <karlitschek@gmx.de> | 2019-03-13 22:36:37 +0300 |
commit | 576dd89846a631ab910bee28ba31bafd59ce044f (patch) | |
tree | 95f4a1ebc8e4293c00bd6e0645c4017ee60d827c /js | |
parent | 9a8d2a053b480507785a8b6ec7acefb6ef07b3b0 (diff) |
use theme color
Diffstat (limited to 'js')
-rwxr-xr-x | js/script.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/script.js b/js/script.js index b7fda5d..57e3192 100755 --- a/js/script.js +++ b/js/script.js @@ -85,7 +85,7 @@ }); cpuLoadChart.streamTo(document.getElementById("cpuloadcanvas"), 1000/*delay*/); cpuLoadLine = new TimeSeries(); - cpuLoadChart.addTimeSeries(cpuLoadLine, { lineWidth: 1, strokeStyle: 'rgb(180, 180, 180)', fillStyle: 'rgb(56, 128, 195)' }); + cpuLoadChart.addTimeSeries(cpuLoadLine, { lineWidth: 1, strokeStyle: 'rgb(180, 180, 180)', fillStyle: OCA.Theming.color }); } $('#cpuFooterInfo').text(t('serverinfo', 'Load average')+": "+cpu1+" ("+t('serverinfo', 'Last minute')+")"); @@ -129,7 +129,7 @@ }); memoryUsageChart.streamTo(document.getElementById("memorycanvas"), 1000/*delay*/); memoryUsageLine = new TimeSeries(); - memoryUsageChart.addTimeSeries(memoryUsageLine, {lineWidth:1, strokeStyle:'rgb(180, 180, 180)', fillStyle:'rgb(56, 128, 195)'}); + memoryUsageChart.addTimeSeries(memoryUsageLine, {lineWidth:1, strokeStyle:'rgb(180, 180, 180)', fillStyle:OCA.Theming.color}); swapUsageLine = new TimeSeries(); memoryUsageChart.addTimeSeries(swapUsageLine, {lineWidth:1, strokeStyle:'rgb(255, 0, 0)', fillStyle:'rgba(255, 0, 0, 0.2)'}); } @@ -354,7 +354,7 @@ $(document).ready(function(){ datasets : [ { backgroundColor: [ - 'rgb(54, 129, 195)', + OCA.Theming.color, 'rgb(249, 249, 249)', ], borderWidth: 0, |