diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-17 12:32:54 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-17 12:32:54 +0200 |
| commit | 3751eb996d4e1495d67036f094b7810f62533282 (patch) | |
| tree | fc4cc4ace6f96293278d2ef8545a795d94bc6a15 /widgets/cache.lua | |
| parent | 5013893b4cbb63277b2a4c92a0dc8b851816aa93 (diff) | |
| download | conky-theme-udt-3751eb996d4e1495d67036f094b7810f62533282.tar.gz conky-theme-udt-3751eb996d4e1495d67036f094b7810f62533282.zip | |
fix: adjust the system cards against the screenshots
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 a1a42e3..0209f1a 100644 --- a/widgets/cache.lua +++ b/widgets/cache.lua @@ -14,8 +14,8 @@ local M = {} function M.draw(cr, rect, colors) local inner = card.card(cr, rect, colors) local function clamp(v, lo, hi) return math.max(lo, math.min(hi, v)) end - local label_size = clamp(inner.w * 0.030, 10, 16) - local big_size = clamp(inner.w * 0.075, 22, 46) + local label_size = clamp(inner.w * 0.036, 10, 16) + local big_size = clamp(inner.w * 0.095, 22, 46) card.font(cr, card.FONT_MONO, label_size, false) card.rgba(cr, colors.label) @@ -36,7 +36,7 @@ function M.draw(cr, rect, colors) card.text(cr, inner.x, inner.y + label_size + big_size, c.total.label) local ey = inner.y + label_size + big_size + label_size * 2 - local step = label_size * 2.2 + local step = label_size * 2.6 card.font(cr, card.FONT_MONO, label_size, false) for i, e in ipairs(c.items) do |
