aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-18 14:45:36 +0200
committerDanilo M. <danix@danix.xyz>2026-10-18 14:45:36 +0200
commit7ea2dab2ac0c4e3db4dfde1b72f8c58b4cdaeabd (patch)
treeffc9f888de2ae389d19f12d396cd522988ca899f /test
parentb4451efb0f957d3cd3d9750f903899d8a87e15f3 (diff)
downloadconky-theme-udt-7ea2dab2ac0c4e3db4dfde1b72f8c58b4cdaeabd.tar.gz
conky-theme-udt-7ea2dab2ac0c4e3db4dfde1b72f8c58b4cdaeabd.zip
chore: render.lua takes fractional spans; reflow a fetcher comment
The final print used %d and raised on fractional spans; header now cites a card that exists. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Diffstat (limited to 'test')
-rw-r--r--test/render.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/render.lua b/test/render.lua
index 3ed5f7e..cc88317 100644
--- a/test/render.lua
+++ b/test/render.lua
@@ -3,13 +3,13 @@
-- Conky ships its Cairo bindings as a loadable module, so a widget's draw()
-- can be called against an image surface from plain Lua. That turns
-- edit-install-restart-toggle-screenshot into one command, which is how the
--- weather card's proportions were fixed.
+-- cards' proportions were fixed.
--
--- lua test/render.lua weather 16 12 3 5 /tmp/w.png
+-- lua test/render.lua now 16 12 3 5 /tmp/w.png
--
-- Caveat: this crops to the single card. It says nothing about how the card
--- looks NEXT to its neighbours, which is a real failure mode (the weather
--- card's type once looked fine here and tiny beside the clock). Check the
+-- looks NEXT to its neighbours, which is a real failure mode (a card's
+-- type once looked fine here and tiny beside the clock). Check the
-- live dashboard before believing anything about relative size.
package.cpath = '/usr/lib64/conky/lib?.so;' .. package.cpath
@@ -89,4 +89,4 @@ end
cairo_destroy(cr)
cairo_surface_write_to_png(surf, out)
cairo_surface_destroy(surf)
-print(string.format('%s at %dx%d on a %dx%d grid -> %s', widget_name, wspan, hspan, COLS, ROWS, out))
+print(string.format('%s at %gx%g on a %dx%d grid -> %s', widget_name, wspan, hspan, COLS, ROWS, out))