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 | |
| parent | 5013893b4cbb63277b2a4c92a0dc8b851816aa93 (diff) | |
| download | conky-theme-udt-3751eb996d4e1495d67036f094b7810f62533282.tar.gz conky-theme-udt-3751eb996d4e1495d67036f094b7810f62533282.zip | |
fix: adjust the system cards against the screenshots
| -rw-r--r-- | widgets/cache.lua | 6 | ||||
| -rw-r--r-- | widgets/system.lua | 2 |
2 files changed, 4 insertions, 4 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 diff --git a/widgets/system.lua b/widgets/system.lua index c76b5b4..7116302 100644 --- a/widgets/system.lua +++ b/widgets/system.lua @@ -59,7 +59,7 @@ function M.draw(cr, rect, colors) if n > 0 then local gap = math.max(2, inner.w * 0.006) local bw = (inner.w - gap * (n - 1)) / n - local eh = clamp(inner.h * 0.16, 24, 80) + local eh = clamp(inner.h * 0.42, 24, 220) -- Below about 3px a row of sixteen bars is an illegible smear; drop to the -- aggregate bar instead of drawing one. if bw >= 3 then |
