From 034f0b6d85935da1b66d67f450924e073d72f45e Mon Sep 17 00:00:00 2001 From: Damocles Date: Sat, 25 Apr 2026 10:54:37 +0200 Subject: [PATCH] sparkline: fix missing bottom-left fill corner --- shell/applets/SparklineCanvas.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/applets/SparklineCanvas.qml b/shell/applets/SparklineCanvas.qml index 614fab4..a82498a 100644 --- a/shell/applets/SparklineCanvas.qml +++ b/shell/applets/SparklineCanvas.qml @@ -109,7 +109,6 @@ Canvas { return bx + bw / 2; } function traceCurve() { - ctx.moveTo(0, yOf(d[0])); if (n === 1) { ctx.lineTo(width, yOf(d[0])); } else { @@ -127,6 +126,7 @@ Canvas { const baseY = lo < 0 ? yOf(0) : height; ctx.beginPath(); ctx.moveTo(0, baseY); + ctx.lineTo(0, yOf(d[0])); traceCurve(); ctx.lineTo(width, baseY); ctx.closePath(); @@ -158,6 +158,7 @@ Canvas { // Stroke line on top ctx.beginPath(); + ctx.moveTo(0, yOf(d[0])); traceCurve(); ctx.strokeStyle = strokeColor.toString(); ctx.lineWidth = root.lineWidth;