NCircleStat: fixed scaling I broke earlier

This commit is contained in:
quadbyte 2025-08-15 15:48:09 -04:00
parent f5b4cb452b
commit fd890f4293

View file

@ -49,13 +49,13 @@ Rectangle {
const ctx = getContext("2d")
const w = width, h = height
const cx = w / 2, cy = h / 2
const r = Math.min(w, h) / 2 - 5 * root.scaling * contentScale
const r = Math.min(w, h) / 2 - 5 * scaling * contentScale
// 240° arc with a 120° gap centered on the right side
// Start at 60° and end at 300° balanced right-side opening
const start = Math.PI / 3
const endBg = Math.PI * 5 / 3
ctx.reset()
ctx.lineWidth = 6 * root.scaling * contentScale
ctx.lineWidth = 6 * scaling * contentScale
// Track uses surfaceVariant for stronger contrast
ctx.strokeStyle = Colors.mSurface
ctx.beginPath()