From 30f3825f1dda873d16d067cf7cacc712dc62d9d5 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 12 Jun 2025 15:24:54 +0200 Subject: [PATCH] progressbar: sperm: fix left end cutoff --- .../modules/common/widgets/StyledProgressBar.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/quickshell/modules/common/widgets/StyledProgressBar.qml b/.config/quickshell/modules/common/widgets/StyledProgressBar.qml index 45505c4c0..991ee489d 100644 --- a/.config/quickshell/modules/common/widgets/StyledProgressBar.qml +++ b/.config/quickshell/modules/common/widgets/StyledProgressBar.qml @@ -62,17 +62,17 @@ ProgressBar { var phase = Date.now() / 400.0; var centerY = height / 2; + ctx.strokeStyle = root.highlightColor; + ctx.lineWidth = parent.height; + ctx.lineCap = "round"; ctx.beginPath(); - for (var x = 0; x <= fillWidth; x += 1) { + for (var x = ctx.lineWidth / 2; x <= fillWidth; x += 1) { var waveY = centerY + amplitude * Math.sin(frequency * 2 * Math.PI * x / width + phase); if (x === 0) ctx.moveTo(x, waveY); else ctx.lineTo(x, waveY); } - ctx.strokeStyle = root.highlightColor; - ctx.lineWidth = parent.height; - ctx.lineCap = "round"; ctx.stroke(); } Connections {