Skip to content

gate_overlay: fix click-through sense, smooth the glow into a ramp - #25

Merged
kakarot-dev merged 1 commit into
masterfrom
agent/gate-overlay-fixups
Aug 20, 2026
Merged

gate_overlay: fix click-through sense, smooth the glow into a ramp#25
kakarot-dev merged 1 commit into
masterfrom
agent/gate-overlay-fixups

Conversation

@kakarot-dev

Copy link
Copy Markdown
Contributor

Summary

Two follow-ups from the review of TokitoAI/tokito#525 (the Tokito Cloud sign-in gate built on gate_overlay, merged as #24):

  1. gate_overlay claimed its full rect with Sense::hover() and a doc comment asserting that blocked clicks to whatever's behind it. That's false under egui 0.35's hit-testing — a hover-only rect never intercepts a click. Switched to Sense::click_and_drag() (and fixed the comment).
  2. The depth glow behind the card was two flat circle_filled discs — reads as concentric rings, not a glow. Replaced with a 7-step alpha ramp (colour drifting accentaccent_2 from rim to core, alpha fading per step via gamma_multiply) for a smoother falloff.

Test plan

🤖 Generated with Claude Code

Two review follow-ups from TokitoAI/tokito#525's gate_overlay consumer:

1. The overlay claimed its rect with Sense::hover() and a doc comment
   claiming that blocked clicks to whatever's behind it. Under egui
   0.35's hit-testing a hover-only rect never actually intercepts a
   click — Sense::click_and_drag() is what's needed to make "nothing
   behind it is clickable while gated" true. Fixed the comment to match.
2. The depth glow behind the card was two flat circle_filled discs,
   which reads as concentric rings rather than a soft glow. Replaced
   with a 7-step alpha ramp (lerp_color accent -> accent_2 outer to
   inner, gamma_multiply fading alpha per step) so it falls off
   smoothly instead of banding.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@kakarot-dev
kakarot-dev merged commit 3c70e20 into master Aug 20, 2026
1 check passed
@kakarot-dev
kakarot-dev deleted the agent/gate-overlay-fixups branch August 20, 2026 18:09
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