Skip to content

Stop OpenRouter from replacing the menu-bar meter with its logo#854

Open
willytop8 wants to merge 1 commit intosteipete:mainfrom
willytop8:wr/openrouter-no-logo-menu-icon
Open

Stop OpenRouter from replacing the menu-bar meter with its logo#854
willytop8 wants to merge 1 commit intosteipete:mainfrom
willytop8:wr/openrouter-no-logo-menu-icon

Conversation

@willytop8
Copy link
Copy Markdown
Contributor

When OpenRouter has no configured key limit, the existing code fell through to a brand-logo fallback — showing the OpenRouter logo in the menu bar instead of a usage meter, which hides useful information in favor of branding.

Removes the logo-fallback branch for OpenRouter so the meter always renders, same as every other provider. brandImageWithStatusOverlay is kept; it still has callers in the test suite.

Also adds two pixel-level tests using NSBitmapImageRep.colorAt to confirm a meter renders (not a logo). A logo would be nearly fully opaque; an unfilled meter track has alpha ≈ 0.28. One test covers the no-key-limit case, one covers key data not yet fetched.

swift test --filter StatusItemAnimationTests

OpenRouter has a brand logo, but the logo suppresses usage information
that is more useful in the menu bar. This change makes OpenRouter always
render its usage meter (the same capsule bar all other providers use)
regardless of whether a brand image is available.

- Removes the logo-fallback branch from applyIcon(for:phase:) for
  OpenRouter; the meter path is now unconditional
- Adds pixel-level tests confirming the meter renders (not the logo) both
  when key data is available with no configured limit and when key data
  has not been fetched yet

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@willytop8 willytop8 force-pushed the wr/openrouter-no-logo-menu-icon branch from af76794 to dfcee77 Compare May 7, 2026 04:40
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.

1 participant