diff options
Diffstat (limited to 'widgets/cache.lua')
| -rw-r--r-- | widgets/cache.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/widgets/cache.lua b/widgets/cache.lua index 3772458..c6391ca 100644 --- a/widgets/cache.lua +++ b/widgets/cache.lua @@ -37,7 +37,8 @@ function M.draw(cr, rect, colors) local row_n = #items local S_h = inner.h * 0.94 / (1.78 + row_n * 0.64) local groups = { - { { 'CACHE', card.FONT_MONO, LABEL_F }, { c.total.label, card.FONT_HEAVY, 1.0 } }, + { { card.title_str(card.ICON.cache, 'CACHE'), card.FONT_MONO, LABEL_F }, + { c.total.label, card.FONT_HEAVY, 1.0 } }, } for i = 1, row_n do groups[#groups + 1] = { { names[i], card.FONT_MONO, ROW_F }, @@ -48,8 +49,7 @@ function M.draw(cr, rect, colors) local row_size = S * ROW_F card.font(cr, card.FONT_MONO, label_size, false) - card.rgba(cr, colors.label) - card.text(cr, inner.x, inner.y + label_size, 'CACHE') + card.title(cr, inner.x, inner.y + label_size, card.ICON.cache, 'CACHE', colors) -- The total shares the header line with the label, set on the same baseline -- and right-aligned: the width carries the number instead of an otherwise |
