Skip to content

feat: add used and remaining usage display modes#42

Open
LiarCoder wants to merge 1 commit into
CodeZeno:mainfrom
LiarCoder:feat/show-remaining-quota
Open

feat: add used and remaining usage display modes#42
LiarCoder wants to merge 1 commit into
CodeZeno:mainfrom
LiarCoder:feat/show-remaining-quota

Conversation

@LiarCoder

@LiarCoder LiarCoder commented Jun 23, 2026

Copy link
Copy Markdown

I'm a totally rookie in Rust, so this feature is implemented by Codex. If someone finds this PR is not enough to be merged, welcome to refine it or just decline it, thanks~ 😁

Preview

image

Overview

  • Add a top-level Usage Display menu below Models for switching between Used and Remaining.
  • Keep used usage as the default and persist the user's selection via the usage_display setting.
  • Apply the selected percentage consistently to the taskbar component text, progress bar, tray badge, and tray tooltip.
  • Continue calculating tray warning colors based on used usage so that low remaining usage still triggers a high-usage warning.
  • Preserve the placeholder display behavior for loading, authentication failure, and unavailable quota states.
  • Add menu translations for all 10 existing languages and update the README instructions.

Verification

  • cargo test: all 10 tests passed.
  • cargo fmt -- --check: passed.

Related Issue

Closes #40

@LiarCoder LiarCoder changed the title feat: 支持切换已用与剩余用量显示 feat: support toggling between used and remaining usage Jun 23, 2026
@LiarCoder LiarCoder changed the title feat: support toggling between used and remaining usage feat: add used and remaining usage display modes Jun 23, 2026
@LiarCoder LiarCoder marked this pull request as ready for review June 23, 2026 15:15
@LiarCoder

Copy link
Copy Markdown
Author

By the way, should I put the "Usage Display" option into the "Settings" section as its sub-menu?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Add an option in settings to choose to show used quota or remaining quota

1 participant