Repository navigation
feat: hints on the camera preview toolbar buttons - #4462
Open
richiemcilroy wants to merge 5 commits into
Open
richiemcilroy wants to merge 5 commits into
richiemcilroy wants to merge 5 commits into
Conversation
|
Sandchest reviewed Sandchest reviews every change for vulnerabilities an attacker could use · 1 credit · Review details |
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Member
Author
|
hey @greptileai, please re-review the PR |
Member
Author
|
hey @greptileai, please re-review the PR |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The camera preview's toolbar is five bare icons. Each one now explains itself on hover, using the same hint bubble the recording picker uses.
Every button, default bubble:
The text follows the state (large, wide, mirrored, light blur):
What each button says
How
CameraWindowowns aui::Hints; each toolbar button addshints.anchor(..)and reports hover, exactly like the picker's controls (apps/desktop-gpui/src/camera_window.rs).deferredso it paints over the preview that comes after it.ui::Hintschanges (apps/desktop-gpui/src/ui/hint.rs)Hint::pinned(side)/place_pinned: keep a row of hints on one side even when the pointer is under it. Without it the picker's pointer-avoidance would push some hints left or right over the neighbouring buttons.min(236, window width - margins), so a hint never runs past a 230 px bubble. Wide windows like the picker keep the old 236 px.anchor()refreshes a showing hint's text during render, so a click that changes it shows the new text in the same frame.All new strings are translated in every catalog.


Confidence Score: 5/5
The PR appears safe to merge; no new actionable issues were found.Summary
Adds translated hover hints to the camera toolbar.
Reviews (3) · Last reviewed commit: "fix: keep camera hints on their buttons ..." · Reviewed by Greptile