aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xapp.mjs2
-rw-r--r--profile.yaml5
2 files changed, 6 insertions, 1 deletions
diff --git a/app.mjs b/app.mjs
index f4887bd..488951d 100755
--- a/app.mjs
+++ b/app.mjs
@@ -800,7 +800,7 @@ const renderBarGauge = (c, display, values) => {
const label = getLabelText(display);
// TODO: cache this
const { font, color_fg } = getTextStyles({
- size: [12, 12, 12, 12],
+ size: display.size,
color_fg: formatColors("color_fg", display, values, 4),
});
diff --git a/profile.yaml b/profile.yaml
index bff7ffd..6843f0e 100644
--- a/profile.yaml
+++ b/profile.yaml
@@ -60,6 +60,11 @@
- P
- M
- F
+ size:
+ - 12
+ - 12
+ - 12
+ - 12
formatter:
- '${$d[0] != null ? ($d[0] * 100).toFixed(0) : "X"}%'
- '${$d[1] != null ? ($d[1] * 100).toFixed(0) : "X"}%'