From 7fb5a4dc4596650acd51ed462cacdc6092a859f4 Mon Sep 17 00:00:00 2001 From: leomayer Date: Fri, 5 Mar 2021 16:59:48 +0100 Subject: [PATCH] suggest for changed color for dark mode --- src/chrome/content/containervisualisation.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/chrome/content/containervisualisation.js b/src/chrome/content/containervisualisation.js index 595e312..5411fce 100644 --- a/src/chrome/content/containervisualisation.js +++ b/src/chrome/content/containervisualisation.js @@ -149,7 +149,7 @@ class ContainerVisualisation { this.drawDot(); - this.drawCircle("black"); + this.drawCircle("AliceBlue"); if (!(this.selected && this.isCircle)) { this.hideCircle(); } else { @@ -387,7 +387,7 @@ class ContainerVisualisation { this.opacity = opacity; this.redrawDot(); - this.redrawCircle("black"); + this.redrawCircle("AliceBlue"); if (!(this.selected && this.isCircle)) { this.hideCircle(); } else { @@ -433,11 +433,11 @@ class ContainerVisualisation { * @param {String} colour The colour */ visualiseCircle(colour) { - let posTop = ((this.top - (this.dotSize * 4 / 6)) * this.resize); - let posLeft = ((this.left - (this.dotSize * 4 / 6)) * this.resize); - let posHeight = (this.dotSize * 8 / 6 * this.resize); - let posWidth = (this.dotSize * 8 / 6 * this.resize); - let styleBorder = (this.dotSize / 6 * this.resize) + "px solid " + colour; + let posTop = ((this.top - (this.dotSize * 2 / 3)) * this.resize); + let posLeft = ((this.left - (this.dotSize * 2 / 3)) * this.resize); + let posHeight = (this.dotSize * 4 / 3 * this.resize); + let posWidth = (this.dotSize * 4 / 3 * this.resize); + let styleBorder = (this.dotSize / 4 * this.resize ) + "px solid " + colour; this.circle.style.top = posTop + "px"; this.circle.style.left = posLeft + "px"; @@ -510,4 +510,4 @@ class ContainerVisualisation { } this.dot.style.cursor = "default"; } -} \ No newline at end of file +}