From 1e8203d8b0e1a75d8dbfa643dd29a0276c89abac Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 18 Oct 2026 14:54:37 +0200 Subject: fix(weather cards): arrowhead needle, matched type sizes, visible rain bars - details: the wind needle ends in a filled arrowhead instead of a dot, so the direction it points (where the wind goes) reads one way only. - hourly, details, sky: raise each card's share so card.standard reaches the same S (72) as now and week. Title and row text now match across the five cards (21.6px / 23px), in line with breaktimer and calendar. The bands (curve, compass, arc) absorb what is left. - hourly: band labels follow the band height a little more (capped at the row size), so they do not shrink with the taller header. - hourly: rain-chance bars at half alpha with a minimum height for any nonzero chance. Typical chances are a few percent, which scaled honestly is a 1px bar that no alpha can rescue. - now: the condition line sits on the card's foot, so the height the capped type leaves over is not an empty strip at the bottom. Co-Authored-By: Claude Opus 5.5 --- widgets/now.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'widgets/now.lua') diff --git a/widgets/now.lua b/widgets/now.lua index 1b797ae..6273ed1 100644 --- a/widgets/now.lua +++ b/widgets/now.lua @@ -31,12 +31,15 @@ function M.draw(cr, rect, colors) big = weather.deg(c.temp), rows = rows, share = 0.85, }) - -- The condition in words, in the prose face, in what the rows left. + -- The condition in words, in the prose face, in what the rows left. It sits + -- on the card's foot: the type is capped to match the other cards, so a tall + -- cell leaves height over, and that gap belongs above the line, not below. local size = S * 0.36 - if y + size * 1.4 <= inner.y + inner.h then + local foot = inner.y + inner.h - size * 0.25 + if y + size * 1.4 <= foot then card.font(cr, card.FONT_UI, size, false) card.rgba(cr, colors.body) - card.text(cr, inner.x, y + size * 1.4, weather.describe(c.code)) + card.text(cr, inner.x, foot, weather.describe(c.code)) end end -- cgit v1.2.3