From 06cb2526a4428f62fb261d34fd9dc693c6691161 Mon Sep 17 00:00:00 2001 From: nyra Date: Sun, 27 Sep 2026 18:27:49 +0000 Subject: [PATCH] Gauge: low-usage fill reuses the space bar button colour --- srcs/juloo.keyboard2/UsageGauge.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/srcs/juloo.keyboard2/UsageGauge.java b/srcs/juloo.keyboard2/UsageGauge.java index 354025f..d46bd99 100644 --- a/srcs/juloo.keyboard2/UsageGauge.java +++ b/srcs/juloo.keyboard2/UsageGauge.java @@ -296,10 +296,10 @@ public final class UsageGauge { float level = Math.max(0, Math.min(1, fraction)); if (level < 0.5f) - // Low usage reads as the theme's own violet-periwinkle rather than cockpit green: it sits - // between the caps-lock blue and the alternate violet, and violet -> amber -> red is easier - // to tell apart than green -> amber -> red for colour-blind eyes. - return blend(Color.rgb(130, 121, 255), Color.rgb(245, 178, 45), level * 2); + // Low usage borrows the space bar button's own colour rather than a hand-matched shade, so + // the gauge and the button can never drift apart. Amber and red still mark high usage: the + // height carries the level, the colour carries the alarm. + return blend(DeepSeekPeak.colorFor(System.currentTimeMillis()), Color.rgb(245, 178, 45), level * 2); return blend(Color.rgb(245, 178, 45), Color.rgb(235, 55, 55), (level - 0.5f) * 2); }