diff options
author | Frank Karlitschek <karlitschek@gmx.de> | 2019-03-20 01:07:04 +0300 |
---|---|---|
committer | Frank Karlitschek <karlitschek@gmx.de> | 2019-03-20 01:07:04 +0300 |
commit | b8bdeb75da876b97ba243ffbae0724d6305dc6d1 (patch) | |
tree | 119ac54a7dd0413c279bd04fdcaaf5a2732d066a /js | |
parent | 9c8bba0b0683f55799c6a03ac375dff93acbeaa1 (diff) |
uswe correct theme color for agenda
Diffstat (limited to 'js')
-rwxr-xr-x | js/script.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/js/script.js b/js/script.js index 409913c..cdf42ba 100755 --- a/js/script.js +++ b/js/script.js @@ -29,6 +29,12 @@ sharesChart; $(document).ready(function () { + var x = document.getElementById('rambox'); + x.style.backgroundColor = OCA.Theming.color; + + var x = document.getElementById('swapbox'); + x.style.backgroundColor = 'rgba(100, 100, 100, 0.8)'; + var updateTimer = setInterval(updateInfo, 300); @@ -131,7 +137,7 @@ memoryUsageLine = new TimeSeries(); 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)'}); + memoryUsageChart.addTimeSeries(swapUsageLine, {lineWidth:1, strokeStyle:'rgb(100, 100, 100)', fillStyle:'rgba(100, 100, 100, 0.2)'}); } $('#memFooterInfo').text("RAM: "+t('serverinfo', 'Total')+": "+OC.Util.humanFileSize(memTotalBytes)+" - "+t('serverinfo', 'Current usage')+": "+OC.Util.humanFileSize(memUsageBytes)); |