We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a50eb53 commit 25b24aeCopy full SHA for 25b24ae
cli/src/components/bottom-status-line.tsx
@@ -74,7 +74,16 @@ export const BottomStatusLine: React.FC<BottomStatusLineProps> = ({
74
{isExhausted && resetTime ? (
75
<text style={{ fg: theme.muted }}>{` · resets in ${formatResetTime(resetTime)}`}</text>
76
) : displayRemaining !== null ? (
77
- <text style={{ fg: theme.foreground }}>{` ${Math.round(displayRemaining)}%`}</text>
+ <text
78
+ style={{
79
+ fg:
80
+ displayRemaining <= 10
81
+ ? theme.error
82
+ : displayRemaining <= 25
83
+ ? theme.warning
84
+ : theme.muted,
85
+ }}
86
+ >{` ${Math.round(displayRemaining)}%`}</text>
87
) : null}
88
</box>
89
0 commit comments