aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/calendar.lua
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-18 19:09:23 +0200
committerDanilo M. <danix@danix.xyz>2026-09-18 19:09:23 +0200
commitd975c14645554cfbe9ba1d8c9279f51bd8407673 (patch)
treee5b60d21939ea02b4e2cb50a4342d071763083b1 /widgets/calendar.lua
parent7fddddcd39bb250cd2653e130c8f7899d2d3f19c (diff)
downloadconky-theme-udt-d975c14645554cfbe9ba1d8c9279f51bd8407673.tar.gz
conky-theme-udt-d975c14645554cfbe9ba1d8c9279f51bd8407673.zip
feat: add a title icon to every labelled card
Add card.ICON and a card.title helper that draws the glyph in the highlight colour before the label, at the label's own size. The eight labelled cards use it, in both the fit_unit width measurement and the draw, so the icon cannot overrun a narrow cell. Clock (no label) and weather (condition glyph already) are unchanged, and the no-data notice titles stay text-only. Codepoints were chosen against a rendered contact sheet, not fontconfig alone, since a wrong codepoint draws a plausible neighbour.
Diffstat (limited to 'widgets/calendar.lua')
-rw-r--r--widgets/calendar.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/widgets/calendar.lua b/widgets/calendar.lua
index b31e3b2..da173c9 100644
--- a/widgets/calendar.lua
+++ b/widgets/calendar.lua
@@ -122,8 +122,7 @@ function M.draw(cr, rect, colors)
card.text_right(cr, inner.x + inner.w, inner.y + big_size, title)
card.font(cr, card.FONT_MONO, label_size, false)
- card.rgba(cr, colors.label)
- card.text(cr, inner.x, inner.y + label_size, 'CALENDAR')
+ card.title(cr, inner.x, inner.y + label_size, card.ICON.calendar, 'CALENDAR', colors)
-- === Month grid =========================================================
-- 2.3, not 1.5: the weekday row sat close enough to the header that the