aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard.lua
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-18 18:41:31 +0200
committerDanilo M. <danix@danix.xyz>2026-09-18 18:41:31 +0200
commit7fddddcd39bb250cd2653e130c8f7899d2d3f19c (patch)
treeca427df07676563853fb7f25f6ce4eb14e63a25b /dashboard.lua
parent37cabe2fea2f86d481516aae6ddaeb14bac2e64f (diff)
downloadconky-theme-udt-7fddddcd39bb250cd2653e130c8f7899d2d3f19c.tar.gz
conky-theme-udt-7fddddcd39bb250cd2653e130c8f7899d2d3f19c.zip
refactor: unify card no-data face and fluid sizing
Extract card.notice so every cached card's no-data state is one fluid, theme-consistent face instead of a copy per widget, and delete the fixed-size card.label it replaces. Derive weather's arc geometry from its band (pad, curve room, sun dot, time labels) instead of fixed pixels, and cap the arc at a proportion of the card's width rather than 240px. Derive disks' bar-fallback height and its address type from the card's own label scale. Standardise the big-value factor to 1.0 across the fit_unit cards and document the big-value colour rule and the disks headline exception.
Diffstat (limited to 'dashboard.lua')
-rw-r--r--dashboard.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/dashboard.lua b/dashboard.lua
index b9316bb..95b3f79 100644
--- a/dashboard.lua
+++ b/dashboard.lua
@@ -155,7 +155,9 @@ local function draw(cr, sw, sh, colors)
-- Name the missing widget in place, rather than leaving a blank cell.
local r = rect_for(entry, sw, sh)
local inner = card.card(cr, r, colors)
- card.label(cr, inner.x, inner.y + 16, 'missing: ' .. entry.widget, colors)
+ card.font(cr, card.FONT_MONO, 16, false)
+ card.rgba(cr, colors.label)
+ card.text(cr, inner.x, inner.y + 16, ('missing: ' .. entry.widget):upper())
end
end
end