Merge: gauge low-usage fill uses the space bar button colour
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user