Skip to content

feat: hints on the camera preview toolbar buttons - #4462

Open
richiemcilroy wants to merge 5 commits into
mainfrom
improve/camera-toolbar-hints
Open

richiemcilroy wants to merge 5 commits into
mainfrom
improve/camera-toolbar-hints

Conversation

@richiemcilroy

@richiemcilroy richiemcilroy commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

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.

Before After

Every button, default bubble:

The text follows the state (large, wide, mirrored, light blur):

What each button says

Button Title Line
Close Close camera
Size Make larger / Make smaller Or drag any corner to resize.
Shape Change shape Switch to a square / a rectangle that shows your whole camera / back to a circle.
Mirror Mirror preview Flip the preview like a mirror. / Mirrored now. Click to flip it back.
Blur Background blur Current level, then what a click does next (cutout only where macOS offers it).
Mirror or blur failed The existing "unavailable" title and message

How

  • CameraWindow owns a ui::Hints; each toolbar button adds hints.anchor(..) and reports hover, exactly like the picker's controls (apps/desktop-gpui/src/camera_window.rs).
  • The hint renders inside the cached toolbar view, deferred so it paints over the preview that comes after it.
  • Same timing as everywhere else: 450 ms to appear, instant swap when moving to the next button, fade out on leave.
  • Size and shape resize the window under the pointer, so their hint goes on click. Mirror and blur keep theirs and update the text in place.
let hint = |title: &'static str| Hint::new(title).pinned(HintSide::Below);

ui::Hints changes (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.
  • Text wraps at 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.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no new actionable issues were found.

Summary

Adds translated hover hints to the camera toolbar.

  • Camera preview buttons explain what they do with state-aware hints.
  • Shared hint bubbles fit narrow windows and can stay on a chosen side.

Reviews (3) · Last reviewed commit: "fix: keep camera hints on their buttons ..." · Reviewed by Greptile

@sandchest-com

sandchest-com Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Sandchest

Sandchest reviewed 27d2c89: nothing exploitable found in this change.

Sandchest reviews every change for vulnerabilities an attacker could use · 1 credit · Review details

Comment thread apps/desktop-gpui/src/camera_window.rs Resolved

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found 2 potential issues (2 medium).

Open in Capy

Comment thread apps/desktop-gpui/src/camera_window.rs Resolved
Comment thread apps/desktop-gpui/src/camera_window.rs Resolved
@vercel
vercel Bot temporarily deployed to Preview – cap-status November 22, 2026 23:16 Inactive
@vercel

vercel Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Skipped Skipped Nov 23, 2026 12:57am UTC

@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

Open in Capy

@vercel
vercel Bot temporarily deployed to Preview – cap-status November 23, 2026 00:57 Inactive
@richiemcilroy

Copy link
Copy Markdown
Member Author

hey @greptileai, please re-review the PR

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capy found no issues.

View 1 other finding in Capy.

Open in Capy

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – cap-web — 27d2c89b Deployed Nov 23, 2026 by vercel[bot]
Preview – cap-status — 27d2c89b Deployed Nov 23, 2026 by vercel[bot]
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