aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/slackware.lua
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/slackware.lua')
-rw-r--r--widgets/slackware.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/widgets/slackware.lua b/widgets/slackware.lua
index f9afb70..9686f8a 100644
--- a/widgets/slackware.lua
+++ b/widgets/slackware.lua
@@ -74,7 +74,8 @@ function M.draw(cr, rect, colors)
-- Fluid type: the height budget grows the content to fill the cell, the
-- measured width fit pulls it back where a row would overrun.
local groups = {
- { { 'SLACKWARE', card.FONT_MONO, LABEL_F }, { age_txt, card.FONT_HEAVY, BIG_F } },
+ { { card.title_str(card.ICON.slackware, 'SLACKWARE'), card.FONT_MONO, LABEL_F },
+ { age_txt, card.FONT_HEAVY, BIG_F } },
}
for _, r in ipairs(rows) do
groups[#groups + 1] = { { r[1], card.FONT_MONO, ROW_F },
@@ -90,8 +91,8 @@ function M.draw(cr, rect, colors)
card.text_right(cr, inner.x + inner.w, inner.y + S * BIG_F, age_txt)
card.font(cr, card.FONT_MONO, label_size, false)
- card.rgba(cr, colors.label)
- card.text(cr, inner.x, inner.y + label_size, 'SLACKWARE')
+ card.title(cr, inner.x, inner.y + label_size, card.ICON.slackware,
+ 'SLACKWARE', colors)
local ey = inner.y + S * BIG_F + row_size * 1.6
local step = row_size * 2.0