aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-17 09:38:12 +0200
committerDanilo M. <danix@danix.xyz>2026-09-17 09:38:12 +0200
commit4985439eb2feb15757c3c8056cbeb5ae2abe1442 (patch)
tree77bc603b39eef6feafc045bfa5237d49dffb3fd3 /bin
parent5a4c0c0de6cb5ed544773a9aa056ac2b3e5b486b (diff)
downloadconky-theme-udt-4985439eb2feb15757c3c8056cbeb5ae2abe1442.tar.gz
conky-theme-udt-4985439eb2feb15757c3c8056cbeb5ae2abe1442.zip
feat: make the clock fill whatever cell it is given
The numerals scaled off the cell but the date block sat at a fixed drop below them, so a tall cell left a dead band under the date and a short one would have collided. Now the date pins to the bottom edge, the numerals take everything above it, and both type sizes derive from the width, so the slack of a tall cell falls in the middle of the card where it belongs. Type scales off width for the same reason the weather card does: height is what changes when a row is added to the grid, and a widget that shrinks its text whenever its cell gets shorter reads as broken next to its neighbours. Checked at 1x3, 1x6, 2x2, 2x4 and 3x3 on an 8x6 grid before restarting conky. The 1x6 case stays width-bound and leaves room below the numerals, which is correct for a cell far taller than it is wide. The README now states the convention, since it applies to every widget added later: derive offsets from the rect, scale off width, decide where the slack goes, and drop an element that would otherwise overlap. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions