1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-01 19:18:28 -04:00

desktop widgets: fix rounding of system monitor graphs

fixes #2356
This commit is contained in:
bbedward
2026-07-03 15:50:06 -04:00
parent 5008406be8
commit 04962ffed1
@@ -393,6 +393,10 @@ Item {
ctx.clearRect(0, 0, width, height);
if (!hist || hist.length < 2)
return;
var r = Math.max(0, tile.radius);
ctx.beginPath();
ctx.roundedRect(0, 0, width, height, r, r);
ctx.clip();
var maxVal = 100;
if (tile.tileType === "net" || tile.tileType === "disk") {
maxVal = 1;