From af82db3b3e9270395bb2581f56527173475dfe64 Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Sun, 7 Jul 2019 12:18:26 +0200 Subject: [PATCH] Fix fill colour --- res/static/script/Toolbar.js | 8 ++++---- res/template/admin.html | 8 ++++---- res/template/file_viewer.html | 6 +++++- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/res/static/script/Toolbar.js b/res/static/script/Toolbar.js index c690bdf..5679de6 100644 --- a/res/static/script/Toolbar.js +++ b/res/static/script/Toolbar.js @@ -268,17 +268,17 @@ var DetailsWindow = { datasets: [ { label: "Downloads", - backgroundColor: "rgba(100, 255, 100, .4)", + backgroundColor: "rgba(100, 255, 100, .1)", borderColor: "rgba(100, 255, 100, .8)", borderWidth: 2, - fill: false, + fill: true, yAxisID: "y_bandwidth", }, { label: "Views", - backgroundColor: "rgba(128, 128, 255, .4)", + backgroundColor: "rgba(128, 128, 255, .1)", borderColor: "rgba(128, 128, 255, .8)", borderWidth: 2, - fill: false, + fill: true, yAxisID: "y_views", } ] diff --git a/res/template/admin.html b/res/template/admin.html index bbeed74..c9feaa6 100644 --- a/res/template/admin.html +++ b/res/template/admin.html @@ -36,18 +36,18 @@ datasets: [ { label: "Downloads", - backgroundColor: "rgba(100, 255, 100, .4)", + backgroundColor: "rgba(100, 255, 100, .1)", borderColor: "rgba(100, 255, 100, .8)", borderWidth: 2, - fill: false, + fill: true, yAxisID: "y_bandwidth", data: response.downloads }, { label: "Views", - backgroundColor: "rgba(128, 128, 255, .4)", + backgroundColor: "rgba(128, 128, 255, .1)", borderColor: "rgba(128, 128, 255, .8)", borderWidth: 2, - fill: false, + fill: true, yAxisID: "y_views", data: response.views } diff --git a/res/template/file_viewer.html b/res/template/file_viewer.html index 41f1dd8..d3daed2 100644 --- a/res/template/file_viewer.html +++ b/res/template/file_viewer.html @@ -114,10 +114,14 @@ -

Bandwidth and views

+

Downloads and views

+

+ Chart rendered by the amazing Chart.js. +

+

About

Pixeldrain is a file sharing platform. Visit the home page for more information.