diff options
Diffstat (limited to 'widgets')
| -rw-r--r-- | widgets/cache.lua | 4 | ||||
| -rw-r--r-- | widgets/gpu.lua | 2 |
2 files changed, 3 insertions, 3 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 diff --git a/widgets/gpu.lua b/widgets/gpu.lua index 7933e3b..cd6cc2f 100644 --- a/widgets/gpu.lua +++ b/widgets/gpu.lua @@ -60,7 +60,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, y + S, 'GPU') + card.text(cr, inner.x, y + label_size, 'GPU') card.rgba(cr, colors.value) card.text(cr, inner.x, y + S + label_size * 1.7, 'ARC B580') |
