diff options
Diffstat (limited to 'widgets/cache.lua')
| -rw-r--r-- | widgets/cache.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/cache.lua b/widgets/cache.lua index 40025eb..0aeb016 100644 --- a/widgets/cache.lua +++ b/widgets/cache.lua @@ -30,7 +30,7 @@ function M.draw(cr, rect, colors) }, 100)) card.font(cr, card.FONT_MONO, S * LABEL_F, false) card.rgba(cr, colors.label) - card.text(cr, inner.x, inner.y + S, 'CACHE') + card.text(cr, inner.x, inner.y + S * LABEL_F, 'CACHE') card.font(cr, card.FONT_UI, S * 0.36, true) card.text(cr, inner.x, inner.y + S + S * LABEL_F * 2.6, 'no cache data') card.font(cr, card.FONT_MONO, S * ROW_F, false) @@ -62,7 +62,7 @@ function M.draw(cr, rect, colors) card.font(cr, card.FONT_MONO, label_size, false) card.rgba(cr, colors.label) - card.text(cr, inner.x, inner.y + S, 'CACHE') + card.text(cr, inner.x, inner.y + label_size, 'CACHE') -- 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 |
