aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/cache.lua
AgeCommit message (Collapse)AuthorFilesLines
2026-09-17fix: sit the gpu and cache titles level with the big valueDanilo M.1-2/+2
The 'GPU' and 'CACHE' labels shared the big number's baseline, so they read as sitting under it. Move them to the card's top-left, the same title position the other cards use, level with the top of the value.
2026-09-17feat: fluid type for the gpu and cache cardsDanilo M.1-20/+53
The big value moves to the right of the heading, on the same baseline, so the card's width carries it instead of leaving the right half empty. Type now scales to fill the cell: card.fit_unit measures the rows and returns the largest size that fits the width, and the widget takes the smaller of that and its height budget, shrinking only where a row would collide.
2026-09-17fix: adjust the system cards against the screenshotsDanilo M.1-3/+3
2026-09-17feat: add the disks and cache cardsDanilo M.1-0/+63
disks draws a ring per filesystem from the df sample, with the NFS server address read from the device field and a labelled-bar fallback when the rings would be too small to read. cache shows the ~/.cache total and its four largest children from the du sample. card.ring now resets the cairo path first: a preceding card.text() leaves a current point, and cairo_arc() joins to it with a straight line, so the disks rings were drawn with stray chords. The ring primitive had no caller until now, which is why it went unnoticed.